Class: Arel::Nodes::Substring

Inherits:
Node
  • Object
show all
Defined in:
lib/arel/extensions/substring.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_sql_and_binds

Constructor Details

#initialize(string, pattern, escape) ⇒ Substring

Returns a new instance of Substring.



12
13
14
15
16
# File 'lib/arel/extensions/substring.rb', line 12

def initialize(string, pattern, escape)
  @string = string
  @pattern = pattern
  @escape = escape
end

Instance Attribute Details

#escapeObject (readonly)

Returns the value of attribute escape.



10
11
12
# File 'lib/arel/extensions/substring.rb', line 10

def escape
  @escape
end

#patternObject (readonly)

Returns the value of attribute pattern.



9
10
11
# File 'lib/arel/extensions/substring.rb', line 9

def pattern
  @pattern
end

#stringObject (readonly)

Returns the value of attribute string.



8
9
10
# File 'lib/arel/extensions/substring.rb', line 8

def string
  @string
end