Class: Yesterday::Differ
- Inherits:
-
Struct
- Object
- Struct
- Yesterday::Differ
- Defined in:
- lib/yesterday/differ.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
2 3 4 |
# File 'lib/yesterday/differ.rb', line 2 def from @from end |
#to ⇒ Object
Returns the value of attribute to
2 3 4 |
# File 'lib/yesterday/differ.rb', line 2 def to @to end |
Instance Method Details
#diff ⇒ Object
4 5 6 |
# File 'lib/yesterday/differ.rb', line 4 def diff @diff ||= diff_object(from, to) end |