Class: Gutentag::Persistence
- Inherits:
-
Object
- Object
- Gutentag::Persistence
- Extended by:
- Forwardable
- Defined in:
- lib/gutentag/persistence.rb
Instance Attribute Summary collapse
-
#tagger ⇒ Object
writeonly
Sets the attribute tagger.
Instance Method Summary collapse
-
#initialize(change_state) ⇒ Persistence
constructor
A new instance of Persistence.
- #persist ⇒ Object
Constructor Details
#initialize(change_state) ⇒ Persistence
Returns a new instance of Persistence.
10 11 12 |
# File 'lib/gutentag/persistence.rb', line 10 def initialize(change_state) @change_state = change_state end |
Instance Attribute Details
#tagger=(value) ⇒ Object
Sets the attribute tagger
8 9 10 |
# File 'lib/gutentag/persistence.rb', line 8 def tagger=(value) @tagger = value end |
Instance Method Details
#persist ⇒ Object
14 15 16 17 |
# File 'lib/gutentag/persistence.rb', line 14 def persist remove_old add_new end |