Files
metasploit-gs/lib/rkelly/nodes/property_node.rb
T
James Lee 92d3c5e5e2 allow setting the property name. note that properties must be a bareword or string literal, not an expression
git-svn-id: file:///home/svn/framework3/trunk@12837 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-03 00:16:50 +00:00

14 lines
279 B
Ruby

module RKelly
module Nodes
class PropertyNode < Node
attr_accessor :name
def initialize(name, value)
super(value)
@name = name
end
end
%w[Getter Setter].each {|node| eval "class #{node}PropertyNode < PropertyNode; end"}
end
end