class Nanoc::Helpers::Capturing::CapturesStore

@api private

Public Class Methods

new() click to toggle source
# File lib/nanoc/helpers/capturing.rb, line 30
def initialize
  @store = {}
end

Public Instance Methods

[](item, name) click to toggle source
# File lib/nanoc/helpers/capturing.rb, line 39
def [](item, name)
  @store[item.identifier] ||= {}
  @store[item.identifier][name]
end
[]=(item, name, content) click to toggle source
# File lib/nanoc/helpers/capturing.rb, line 34
def []=(item, name, content)
  @store[item.identifier] ||= {}
  @store[item.identifier][name] = content
end
reset_for(item) click to toggle source
# File lib/nanoc/helpers/capturing.rb, line 44
def reset_for(item)
  @store[item.identifier] = {}
end