class DryHamlHandlebars::ContentCache
Attributes
index[RW]
store[RW]
Public Class Methods
new()
click to toggle source
# File lib/dry_haml_handlebars.rb, line 46 def initialize @store = [] end
Public Instance Methods
add_item(name, path)
click to toggle source
# File lib/dry_haml_handlebars.rb, line 50 def add_item(name, path) item = ContentItem.new(name.to_sym, path.to_s) @store << item end
clear()
click to toggle source
# File lib/dry_haml_handlebars.rb, line 59 def clear initialize end
remove_item(item)
click to toggle source
# File lib/dry_haml_handlebars.rb, line 55 def remove_item(item) @store.delete item end