Class: AlgebraDB::Build::Op
- Inherits:
-
Struct
- Object
- Struct
- AlgebraDB::Build::Op
- Defined in:
- lib/algebra_db/build/op.rb
Instance Attribute Summary collapse
-
#lhs ⇒ Object
Returns the value of attribute lhs.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#rhs ⇒ Object
Returns the value of attribute rhs.
Instance Method Summary collapse
Instance Attribute Details
#lhs ⇒ Object
Returns the value of attribute lhs
3 4 5 |
# File 'lib/algebra_db/build/op.rb', line 3 def lhs @lhs end |
#operator ⇒ Object
Returns the value of attribute operator
3 4 5 |
# File 'lib/algebra_db/build/op.rb', line 3 def operator @operator end |
#rhs ⇒ Object
Returns the value of attribute rhs
3 4 5 |
# File 'lib/algebra_db/build/op.rb', line 3 def rhs @rhs end |
Instance Method Details
#render_syntax(builder) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/algebra_db/build/op.rb', line 4 def render_syntax(builder) builder.parenthesize do lhs.render_syntax(builder) builder.text(operator.to_s) rhs.render_syntax(builder) end end |