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