Class: JDBCHelper::SQL::ScalarExpression
- Inherits:
-
Expression
- Object
- Expression
- JDBCHelper::SQL::ScalarExpression
- Defined in:
- lib/jdbc-helper/sql/expression.rb
Overview
Instance Method Summary collapse
-
#initialize(sql) ⇒ ScalarExpression
constructor
A new instance of ScalarExpression.
- #to_bind ⇒ Object
- #to_s ⇒ Object
Methods inherited from Expression
Constructor Details
#initialize(sql) ⇒ ScalarExpression
Returns a new instance of ScalarExpression.
97 98 99 |
# File 'lib/jdbc-helper/sql/expression.rb', line 97 def initialize sql @sql = SQL.check sql.to_s end |
Instance Method Details
#to_bind ⇒ Object
105 106 107 |
# File 'lib/jdbc-helper/sql/expression.rb', line 105 def to_bind [@to_s, []] end |
#to_s ⇒ Object
101 102 103 |
# File 'lib/jdbc-helper/sql/expression.rb', line 101 def to_s @sql end |