Class: Cyrel::Clause::With::RawExpressionString
- Inherits:
-
Expression::Base
- Object
- Expression::Base
- Cyrel::Clause::With::RawExpressionString
- Defined in:
- lib/cyrel/clause/with.rb
Overview
Simple internal class to represent a raw expression string that might contain aliases and should not be parameterized/quoted directly.
Instance Attribute Summary collapse
-
#expression_string ⇒ Object
readonly
Returns the value of attribute expression_string.
Instance Method Summary collapse
-
#initialize(expression_string) ⇒ RawExpressionString
constructor
A new instance of RawExpressionString.
- #render(_query) ⇒ Object
Methods inherited from Expression::Base
#!=, #%, #&, #*, #+, #-, #/, #<, #<=, #==, #=~, #>, #>=, #^, #|
Constructor Details
#initialize(expression_string) ⇒ RawExpressionString
Returns a new instance of RawExpressionString.
86 87 88 |
# File 'lib/cyrel/clause/with.rb', line 86 def initialize(expression_string) @expression_string = expression_string end |
Instance Attribute Details
#expression_string ⇒ Object (readonly)
Returns the value of attribute expression_string.
84 85 86 |
# File 'lib/cyrel/clause/with.rb', line 84 def expression_string @expression_string end |
Instance Method Details
#render(_query) ⇒ Object
90 |
# File 'lib/cyrel/clause/with.rb', line 90 def render(_query) = @expression_string |