Class: Cans::Historian
- Inherits:
-
Object
- Object
- Cans::Historian
- Defined in:
- lib/cans/historian.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#history ⇒ Object
Returns the value of attribute history.
Instance Method Summary collapse
- #delve ⇒ Object
-
#initialize ⇒ Historian
constructor
A new instance of Historian.
- #record ⇒ Object
Constructor Details
#initialize ⇒ Historian
Returns a new instance of Historian.
5 6 7 8 9 10 |
# File 'lib/cans/historian.rb', line 5 def initialize self.history = Set.new self.enabled = false try_history try_bugging_rails end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
3 4 5 |
# File 'lib/cans/historian.rb', line 3 def enabled @enabled end |
#history ⇒ Object
Returns the value of attribute history.
4 5 6 |
# File 'lib/cans/historian.rb', line 4 def history @history end |
Instance Method Details
#delve ⇒ Object
12 13 14 15 16 |
# File 'lib/cans/historian.rb', line 12 def delve return unless enabled merge_history reload_history end |
#record ⇒ Object
18 19 20 |
# File 'lib/cans/historian.rb', line 18 def record merge_history end |