Class: Cyrel::Clause::With::RawExpressionString

Inherits:
Expression::Base show all
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

Instance Method Summary collapse

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_stringObject (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