class RKelly::Nodes::VarDeclNode

Attributes

name[RW]
type[RW]

Public Class Methods

new(name, value, constant = false) click to toggle source
Calls superclass method RKelly::Nodes::Node::new
# File lib/rkelly/nodes/var_decl_node.rb, line 5
def initialize(name, value, constant = false)
  super(value)
  @name = name
  @constant = constant
end

Public Instance Methods

constant?() click to toggle source
# File lib/rkelly/nodes/var_decl_node.rb, line 11
def constant?; @constant; end
variable?() click to toggle source
# File lib/rkelly/nodes/var_decl_node.rb, line 12
def variable?; !@constant; end