198a43cc8d
Callable is the Method, whereas here we call the method
14 lines
236 B
Ruby
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
|