Class: Nanoc::Helpers::Capturing::CapturesStore Private
- Inherits:
-
Object
- Object
- Nanoc::Helpers::Capturing::CapturesStore
- Defined in:
- lib/nanoc/helpers/capturing.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary (collapse)
-
- (Object) [](item, name)
private
-
- (Object) []=(item, name, content)
private
-
- (CapturesStore) initialize
constructor
private
A new instance of CapturesStore.
Constructor Details
- (CapturesStore) initialize
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CapturesStore
42 43 44 |
# File 'lib/nanoc/helpers/capturing.rb', line 42 def initialize @store = {} end |
Instance Method Details
- (Object) [](item, name)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
51 52 53 54 |
# File 'lib/nanoc/helpers/capturing.rb', line 51 def [](item, name) @store[item.identifier] ||= {} @store[item.identifier][name] end |
- (Object) []=(item, name, content)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
46 47 48 49 |
# File 'lib/nanoc/helpers/capturing.rb', line 46 def []=(item, name, content) @store[item.identifier] ||= {} @store[item.identifier][name] = content end |