2018-07-19 13:46:51 +02:00
|
|
|
module Ruby
|
2018-09-01 14:54:25 +02:00
|
|
|
# Send and yield are very very similar, so they have a base class CallStatement
|
|
|
|
#
|
|
|
|
# The SendStatement really only provides to_s, so see CallStatement
|
|
|
|
#
|
2018-07-30 13:44:14 +02:00
|
|
|
class SendStatement < CallStatement
|
2018-07-19 13:46:51 +02:00
|
|
|
def to_s
|
|
|
|
"#{receiver}.#{name}(#{arguments.join(', ')})"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|