class ArelExtensions::Nodes::RegexpReplace
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 23 def initialize left, pattern, substitute @left = convert_to_node(left) @pattern = (pattern.is_a?(Regexp) ? pattern : %r[#{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 30 def +(other) return ArelExtensions::Nodes::Concat.new(self.expressions + [other]) end