Class: Arel::Nodes::Trim

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_sql_and_binds

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

#stringObject (readonly)

Returns the value of attribute string.



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

def string
  @string
end

#substringObject (readonly)

Returns the value of attribute substring.



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

def substring
  @substring
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end