class ArelExtensions::Nodes::Replace
Constants
- RETURN_TYPE
Attributes
left[RW]
pattern[RW]
substitute[RW]
Public Class Methods
new(left, pattern, substitute)
click to toggle source
Calls superclass method
# File lib/arel_extensions/nodes/replace.rb, line 7 def initialize left, pattern, substitute @left = convert_to_node(left) @pattern = convert_to_node(pattern) @substitute = convert_to_node(substitute) super([@left,@pattern,@substitute]) end
Public Instance Methods
+(other)
click to toggle source
# File lib/arel_extensions/nodes/replace.rb, line 14 def +(other) return ArelExtensions::Nodes::Concat.new(self.expressions + [other]) end