rubyx/lib/vool/variables.rb
Torsten Ruger 3fe286b5ed enforces data encapsulation in vool tree
gets rid of attraccessor
2017-04-06 16:06:51 +03:00

25 lines
346 B
Ruby

module Vool
module Named
attr_reader :name
def initialize name
@name = name
end
end
class LocalVariable < Statement
include Named
end
class InstanceVariable < Statement
include Named
end
class ClassVariable < Statement
include Named
end
class ModuleName < Statement
include Named
end
end