Class: Changes::Change
- Inherits:
-
Object
- Object
- Changes::Change
- Defined in:
- lib/changes.rb
Instance Attribute Summary collapse
-
#new ⇒ Object
Returns the value of attribute new.
-
#old ⇒ Object
Returns the value of attribute old.
Instance Method Summary collapse
-
#initialize ⇒ Change
constructor
A new instance of Change.
Constructor Details
#initialize ⇒ Change
Returns a new instance of Change.
20 21 22 23 |
# File 'lib/changes.rb', line 20 def initialize @old = [] @new = nil end |
Instance Attribute Details
#new ⇒ Object
Returns the value of attribute new.
19 20 21 |
# File 'lib/changes.rb', line 19 def new @new end |
#old ⇒ Object
Returns the value of attribute old.
19 20 21 |
# File 'lib/changes.rb', line 19 def old @old end |