rubyx/lib/vool/statements/method_statement.rb

17 lines
283 B
Ruby
Raw Normal View History

2017-04-01 15:27:32 +02:00
module Vool
class MethodStatement
attr_reader :name, :args , :body
def initialize( name , args , body)
@name , @args , @body = name , args , (body || [])
end
2017-04-08 11:10:42 +02:00
def collect(arr)
@args.collect(arr)
@body.collect(arr)
super
end
2017-04-01 15:27:32 +02:00
end
end