rubyx/lib/vool/statements/variables.rb

25 lines
346 B
Ruby
Raw Normal View History

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
2017-04-04 17:00:21 +02:00
class ModuleName < Statement
include Named
end
end