rubyx/lib/vool/statements/method_statement.rb
2017-04-08 12:10:42 +03:00

17 lines
283 B
Ruby

module Vool
class MethodStatement
attr_reader :name, :args , :body
def initialize( name , args , body)
@name , @args , @body = name , args , (body || [])
end
def collect(arr)
@args.collect(arr)
@body.collect(arr)
super
end
end
end