Class: IpynbDiff::Diff
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- IpynbDiff::Diff
- Defined in:
- lib/diff.rb
Overview
The result of a diff object
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(from, to, diffy_opts) ⇒ Diff
constructor
A new instance of Diff.
Constructor Details
#initialize(from, to, diffy_opts) ⇒ Diff
Returns a new instance of Diff.
13 14 15 16 17 18 |
# File 'lib/diff.rb', line 13 def initialize(from, to, diffy_opts) super(Diffy::Diff.new(from.as_text, to.as_text, **diffy_opts)) @from = from @to = to end |
Instance Attribute Details
#from ⇒ Object (readonly)
Returns the value of attribute from.
11 12 13 |
# File 'lib/diff.rb', line 11 def from @from end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
11 12 13 |
# File 'lib/diff.rb', line 11 def to @to end |