rubyx/lib/vool/statements/local_statement.rb
Torsten Ruger be10e8c6af set up ivar_assignment correctly
for statement tests
and write mom tests
also implement to_mom
and fix local (self) bug
2017-04-12 20:29:45 +03:00

15 lines
257 B
Ruby

module Vool
class LocalAssignment < Assignment
# used to collect frame information
def add_local( array )
array << @name
end
def to_mom( method )
Mom::SlotConstant.new([:message , :frame , @name] , @value)
end
end
end