Class: Romanesco::ParenthesesOperator
- Inherits:
-
UnaryOperator
- Object
- Expression
- Operator
- UnaryOperator
- Romanesco::ParenthesesOperator
- Defined in:
- lib/romanesco/elements/parentheses_operator.rb
Instance Attribute Summary
Attributes inherited from UnaryOperator
Attributes inherited from Operator
Attributes inherited from Expression
Instance Method Summary collapse
- #default_precedence ⇒ Object
-
#initialize(symbol) ⇒ ParenthesesOperator
constructor
A new instance of ParenthesesOperator.
Methods inherited from UnaryOperator
#evaluate, #insert_element, #insert_element_to_left, #insert_element_to_right, #to_s
Methods inherited from Operator
#check_for_blank_symbol, #connect, #connect_in_place, #connect_in_place_with_parent, #connect_to_left, #connect_to_right, #connect_up_tree, #evaluate, #precedence, #precedence=
Methods inherited from Expression
Constructor Details
#initialize(symbol) ⇒ ParenthesesOperator
Returns a new instance of ParenthesesOperator.
6 7 8 |
# File 'lib/romanesco/elements/parentheses_operator.rb', line 6 def initialize(symbol) @symbol = '()' end |
Instance Method Details
#default_precedence ⇒ Object
10 11 12 |
# File 'lib/romanesco/elements/parentheses_operator.rb', line 10 def default_precedence 100 end |