class ArelConverter::Replacement
Attributes
error[RW]
new_content[RW]
old_content[RW]
Public Class Methods
new(old_content=nil, new_content=nil)
click to toggle source
# File lib/arel_converter/replacement.rb, line 7 def initialize(old_content=nil, new_content=nil) @old_content = old_content @new_content = new_content end
Public Instance Methods
<=>(other)
click to toggle source
# File lib/arel_converter/replacement.rb, line 16 def <=>(other) [self.old_content, self.new_content] <=> [other.old_content, other.new_content] end
valid?()
click to toggle source
# File lib/arel_converter/replacement.rb, line 12 def valid? @error.nil? end