Class: Arel::Nodes::Overlay

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_sql_and_binds

Constructor Details

#initialize(string, substring, start, length = nil) ⇒ Overlay

Returns a new instance of Overlay.



14
15
16
17
18
19
# File 'lib/arel/extensions/overlay.rb', line 14

def initialize(string, substring, start, length = nil)
  @string = string
  @substring = substring
  @start = start
  @length = length
end

Instance Attribute Details

#lengthObject (readonly)

Returns the value of attribute length.



12
13
14
# File 'lib/arel/extensions/overlay.rb', line 12

def length
  @length
end

#startObject (readonly)

Returns the value of attribute start.



11
12
13
# File 'lib/arel/extensions/overlay.rb', line 11

def start
  @start
end

#stringObject (readonly)

Returns the value of attribute string.



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

def string
  @string
end

#substringObject (readonly)

Returns the value of attribute substring.



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

def substring
  @substring
end