Class: Code::Node::LeftOperation::Operator
- Inherits:
-
Code::Node
- Object
- Code::Node
- Code::Node::LeftOperation::Operator
- Defined in:
- lib/code/node/left_operation.rb
Constant Summary collapse
- DOT =
"."
- COLON_COLON =
"::"
Instance Attribute Summary collapse
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
Instance Method Summary collapse
- #call? ⇒ Boolean
-
#initialize(parsed) ⇒ Operator
constructor
A new instance of Operator.
Methods inherited from Code::Node
Constructor Details
Instance Attribute Details
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
10 11 12 |
# File 'lib/code/node/left_operation.rb', line 10 def operator @operator end |
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
10 11 12 |
# File 'lib/code/node/left_operation.rb', line 10 def statement @statement end |
Instance Method Details
#call? ⇒ Boolean
17 18 19 |
# File 'lib/code/node/left_operation.rb', line 17 def call? operator == DOT || operator == COLON_COLON end |