rubyx/lib/ruby/yield_statement.rb
Torsten Ruger 198a43cc8d rename callable to CallStatement
Callable is the Method, whereas here we call the method
2018-07-30 14:44:14 +03:00

14 lines
236 B
Ruby

module Ruby
class YieldStatement < CallStatement
def initialize(arguments)
super("yield_#{object_id}".to_sym , SelfExpression.new , arguments)
end
def to_s
"yield(#{arguments.join(', ')})"
end
end
end