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

17 lines
318 B
Ruby

module Vool
class Assignment < Statement
attr_reader :name , :value
def initialize(name , value )
@name , @value = name , value
end
def collect(arr)
@value.collect(arr)
super
end
end
class LocalAssignment < Assignment
end
class InstanceAssignment < Assignment
end
end