Class: TPPlus::Nodes::ArgumentNode
- Inherits:
-
Object
- Object
- TPPlus::Nodes::ArgumentNode
- Defined in:
- lib/tp_plus/nodes/argument_node.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #eval(context, options = {}) ⇒ Object
-
#initialize(id) ⇒ ArgumentNode
constructor
A new instance of ArgumentNode.
- #requires_mixed_logic?(context) ⇒ Boolean
Constructor Details
#initialize(id) ⇒ ArgumentNode
Returns a new instance of ArgumentNode.
6 7 8 9 |
# File 'lib/tp_plus/nodes/argument_node.rb', line 6 def initialize(id) @id = id @comment = comment end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
4 5 6 |
# File 'lib/tp_plus/nodes/argument_node.rb', line 4 def comment @comment end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/tp_plus/nodes/argument_node.rb', line 5 def id @id end |
Instance Method Details
#eval(context, options = {}) ⇒ Object
15 16 17 |
# File 'lib/tp_plus/nodes/argument_node.rb', line 15 def eval(context,={}) "AR[#{@id}]" end |
#requires_mixed_logic?(context) ⇒ Boolean
11 12 13 |
# File 'lib/tp_plus/nodes/argument_node.rb', line 11 def requires_mixed_logic?(context) true end |