Module: Fie::Track
- Included in:
- State
- Defined in:
- lib/fie/state/track.rb
Instance Method Summary collapse
Instance Method Details
#track_changes_in_objects(object) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/fie/state/track.rb', line 3 def track_changes_in_objects(object) if object.is_a?(Array) track_changes_in_array(object) elsif object.is_a?(Hash) track_changes_in_hash(object) elsif !object.duplicable? || object.is_a?(String) || object.is_a?(Time) nil else track_changes_in_object(object) end end |
#untrack_changes_in_objects(object) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/fie/state/track.rb', line 15 def untrack_changes_in_objects(object) if object.is_a? Hash untrack_changes_in_hash(object) elsif object.is_a? Array untrack_changes_in_array(object) elsif !object.duplicable? || object.is_a?(String) || object.is_a?(Time) nil else untrack_changes_in_object(object) end end |