Files
metasploit-gs/lib/rkelly/nodes/var_decl_node.rb
T
James Lee 7458abc8b3 add rkelly, a javascript parsing library. this version fixes several bugs in the abandoned gem, see https://github.com/tenderlove/rkelly/pull/6
git-svn-id: file:///home/svn/framework3/trunk@12815 4d416f70-5f16-0410-b530-b9f4589650da
2011-06-02 06:31:34 +00:00

16 lines
316 B
Ruby

module RKelly
module Nodes
class VarDeclNode < Node
attr_accessor :name, :type
def initialize(name, value, constant = false)
super(value)
@name = name
@constant = constant
end
def constant?; @constant; end
def variable?; !@constant; end
end
end
end