Class: Halunke::MessageSendNode
- Inherits:
-
Struct
- Object
- Struct
- Halunke::MessageSendNode
- Defined in:
- lib/halunke/nodes.rb
Instance Attribute Summary collapse
-
#nodes ⇒ Object
Returns the value of attribute nodes.
-
#te ⇒ Object
Returns the value of attribute te.
-
#ts ⇒ Object
Returns the value of attribute ts.
Instance Method Summary collapse
Instance Attribute Details
#nodes ⇒ Object
Returns the value of attribute nodes
133 134 135 |
# File 'lib/halunke/nodes.rb', line 133 def nodes @nodes end |
#te ⇒ Object
Returns the value of attribute te
133 134 135 |
# File 'lib/halunke/nodes.rb', line 133 def te @te end |
#ts ⇒ Object
Returns the value of attribute ts
133 134 135 |
# File 'lib/halunke/nodes.rb', line 133 def ts @ts end |
Instance Method Details
#==(other) ⇒ Object
140 141 142 143 |
# File 'lib/halunke/nodes.rb', line 140 def ==(other) other.is_a?(MessageSendNode) && nodes == other.nodes end |
#eval(context) ⇒ Object
134 135 136 137 138 |
# File 'lib/halunke/nodes.rb', line 134 def eval(context) , = (context) receiver.eval(context).(context, , , source_code_position: source_code_position) end |
#source_code_position ⇒ Object
145 146 147 |
# File 'lib/halunke/nodes.rb', line 145 def source_code_position SourceCodePosition.new(ts, te) end |