Class: Avm::Data::Unit
- Inherits:
-
Object
- Object
- Avm::Data::Unit
- Includes:
- Callbacks
- Defined in:
- lib/avm/data/unit.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#clear ⇒ void
This method returns an undefined value.
17 18 19 |
# File 'lib/avm/data/unit.rb', line 17 def clear run_callbacks(:dump) { do_clear } end |
#dump(dump_path) ⇒ void
This method returns an undefined value.
23 24 25 26 27 28 |
# File 'lib/avm/data/unit.rb', line 23 def dump(dump_path) run_callbacks :dump do infom "Dumping unit \"#{name}\" to \"#{dump_path}\"..." do_dump(dump_path) end end |
#load(dump_path) ⇒ void
This method returns an undefined value.
32 33 34 35 36 37 38 |
# File 'lib/avm/data/unit.rb', line 32 def load(dump_path) run_callbacks :load do clear infom "Loading unit \"#{name}\" from \"#{dump_path}\"..." do_load(dump_path) end end |
#name ⇒ String
41 |
# File 'lib/avm/data/unit.rb', line 41 delegate :name, to: :class |