Class: Changes::Change

Inherits:
Object
  • Object
show all
Defined in:
lib/changes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChange

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

#newObject

Returns the value of attribute new.



19
20
21
# File 'lib/changes.rb', line 19

def new
  @new
end

#oldObject

Returns the value of attribute old.



19
20
21
# File 'lib/changes.rb', line 19

def old
  @old
end