Module: BuckKnife::DataAccessor
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/buckknife/data_accessor.rb', line 3 def self.included(base) base.extend(ClassMethods) def _read_data(key) @data[key.to_s] end def _write_data(key, val) @data[key.to_s] = val end end |
Instance Method Details
#_read_data(key) ⇒ Object
6 7 8 |
# File 'lib/buckknife/data_accessor.rb', line 6 def _read_data(key) @data[key.to_s] end |
#_write_data(key, val) ⇒ Object
10 11 12 |
# File 'lib/buckknife/data_accessor.rb', line 10 def _write_data(key, val) @data[key.to_s] = val end |