Class: TPPlus::Nodes::ArgumentNode

Inherits:
Object
  • Object
show all
Defined in:
lib/tp_plus/nodes/argument_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ ArgumentNode

Returns a new instance of ArgumentNode.



5
6
7
8
# File 'lib/tp_plus/nodes/argument_node.rb', line 5

def initialize(id)
  @id = id
  @comment = comment
end

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



4
5
6
# File 'lib/tp_plus/nodes/argument_node.rb', line 4

def comment
  @comment
end

Instance Method Details

#eval(context, options = {}) ⇒ Object



14
15
16
# File 'lib/tp_plus/nodes/argument_node.rb', line 14

def eval(context,options={})
  "AR[#{@id}]"
end

#requires_mixed_logic?(context) ⇒ Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/tp_plus/nodes/argument_node.rb', line 10

def requires_mixed_logic?(context)
  true
end