Class: Ronin::SQL::BinaryExpr
- Inherits:
-
Struct
- Object
- Struct
- Ronin::SQL::BinaryExpr
- Defined in:
- lib/ronin/sql/binary_expr.rb
Overview
Represents a binary expression in SQL.
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#operator ⇒ Object
Returns the value of attribute operator.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
-
#to_sql(options = {}) ⇒ String
Converts the binary expression to SQL.
Methods included from Emittable
Methods included from Operators
#!, #!=, #%, #&, #*, #+, #+@, #-, #-@, #/, #<, #<<, #<=, #==, #>, #>=, #>>, #and, #as, #glob, #in, #is, #is_not, #like, #match, #not, #or, #regexp, #|, #~
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left
33 34 35 |
# File 'lib/ronin/sql/binary_expr.rb', line 33 def left @left end |
#operator ⇒ Object
Returns the value of attribute operator
33 34 35 |
# File 'lib/ronin/sql/binary_expr.rb', line 33 def operator @operator end |
#right ⇒ Object
Returns the value of attribute right
33 34 35 |
# File 'lib/ronin/sql/binary_expr.rb', line 33 def right @right end |
Instance Method Details
#to_sql(options = {}) ⇒ String
Converts the binary expression to SQL.
47 48 49 |
# File 'lib/ronin/sql/binary_expr.rb', line 47 def to_sql(={}) emitter().emit_expression(self) end |