refactor
This commit is contained in:
parent
afbcbca4da
commit
3c92e707da
@ -14,10 +14,7 @@ module Vool
|
|||||||
# compilation to the next layer, mom
|
# compilation to the next layer, mom
|
||||||
# context coming in for class is nil, also for methods, henceafter a method is passed down
|
# context coming in for class is nil, also for methods, henceafter a method is passed down
|
||||||
def to_mom( _ )
|
def to_mom( _ )
|
||||||
methods = []
|
methods = @body.statements.collect { |meth| meth.to_mom( nil ) }
|
||||||
@body.statements.each do |meth|
|
|
||||||
methods << meth.to_mom( nil )
|
|
||||||
end
|
|
||||||
Mom::Statements.new(methods)
|
Mom::Statements.new(methods)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user