Class: Arel::Nodes::Trim
Overview
Instance Attribute Summary collapse
-
#string ⇒ Object
readonly
Returns the value of attribute string.
-
#substring ⇒ Object
readonly
Returns the value of attribute substring.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, substring, string) ⇒ Trim
constructor
A new instance of Trim.
Methods inherited from Node
Constructor Details
#initialize(type, substring, string) ⇒ Trim
Returns a new instance of Trim.
12 13 14 15 16 |
# File 'lib/arel/extensions/trim.rb', line 12 def initialize(type, substring, string) @type = type @substring = substring @string = string end |
Instance Attribute Details
#string ⇒ Object (readonly)
Returns the value of attribute string.
10 11 12 |
# File 'lib/arel/extensions/trim.rb', line 10 def string @string end |
#substring ⇒ Object (readonly)
Returns the value of attribute substring.
9 10 11 |
# File 'lib/arel/extensions/trim.rb', line 9 def substring @substring end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/arel/extensions/trim.rb', line 8 def type @type end |