2011-06-02 06:31:34 +00:00
|
|
|
module RKelly
|
|
|
|
module Nodes
|
|
|
|
class PropertyNode < Node
|
2011-06-03 00:16:50 +00:00
|
|
|
attr_accessor :name
|
2011-06-02 06:31:34 +00:00
|
|
|
def initialize(name, value)
|
|
|
|
super(value)
|
|
|
|
@name = name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
%w[Getter Setter].each {|node| eval "class #{node}PropertyNode < PropertyNode; end"}
|
|
|
|
end
|
|
|
|
end
|