Class: Ruvi::EditorApp::DiffLogger::DifferenceTypes
- Inherits:
-
Object
- Object
- Ruvi::EditorApp::DiffLogger::DifferenceTypes
- Includes:
- Singleton
- Defined in:
- lib/timemachine.rb
Instance Attribute Summary collapse
-
#registered_change_types ⇒ Object
Returns the value of attribute registered_change_types.
Instance Method Summary collapse
-
#initialize ⇒ DifferenceTypes
constructor
A new instance of DifferenceTypes.
- #register_change_type(change) ⇒ Object
Constructor Details
#initialize ⇒ DifferenceTypes
Returns a new instance of DifferenceTypes.
280 281 282 |
# File 'lib/timemachine.rb', line 280 def initialize @registered_change_types = [] end |
Instance Attribute Details
#registered_change_types ⇒ Object
Returns the value of attribute registered_change_types.
279 280 281 |
# File 'lib/timemachine.rb', line 279 def registered_change_types @registered_change_types end |
Instance Method Details
#register_change_type(change) ⇒ Object
283 284 285 |
# File 'lib/timemachine.rb', line 283 def register_change_type change @registered_change_types << change end |