25 lines
348 B
Ruby
25 lines
348 B
Ruby
module Vool
|
|
module Named
|
|
attr_accessor :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
|