Class: Arel::Nodes::Overlay
Overview
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
-
#substring ⇒ Object
readonly
Returns the value of attribute substring.
Instance Method Summary collapse
-
#initialize(string, substring, start, length = nil) ⇒ Overlay
constructor
A new instance of Overlay.
Methods inherited from Node
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
#length ⇒ Object (readonly)
Returns the value of attribute length.
12 13 14 |
# File 'lib/arel/extensions/overlay.rb', line 12 def length @length end |
#start ⇒ Object (readonly)
Returns the value of attribute start.
11 12 13 |
# File 'lib/arel/extensions/overlay.rb', line 11 def start @start end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
9 10 11 |
# File 'lib/arel/extensions/overlay.rb', line 9 def string @string end |
#substring ⇒ Object (readonly)
Returns the value of attribute substring.
10 11 12 |
# File 'lib/arel/extensions/overlay.rb', line 10 def substring @substring end |