d73e1526cd
somewhat code_climate inspired
12 lines
294 B
Ruby
12 lines
294 B
Ruby
module Ruby
|
|
# Send and yield are very very similar, so they have a base class CallStatement
|
|
#
|
|
# The SendStatement really only provides to_s, so see CallStatement
|
|
#
|
|
class SendStatement < CallStatement
|
|
def to_s
|
|
"#{receiver}.#{name}(#{arguments.join(', ')})"
|
|
end
|
|
end
|
|
end
|