Class: Yesterday::Differ

Inherits:
Struct
  • Object
show all
Defined in:
lib/yesterday/differ.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



2
3
4
# File 'lib/yesterday/differ.rb', line 2

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



2
3
4
# File 'lib/yesterday/differ.rb', line 2

def to
  @to
end

Instance Method Details

#diffObject



4
5
6
# File 'lib/yesterday/differ.rb', line 4

def diff
  @diff ||= diff_object(from, to)
end