Class: Crumpet::Repository

Inherits:
Array
  • Object
show all
Defined in:
lib/crumpet/repository.rb

Instance Method Summary collapse

Instance Method Details

#<<(crumb) ⇒ Object



11
12
13
14
# File 'lib/crumpet/repository.rb', line 11

def <<(crumb)
  fail ArgumentError, 'crumb must be a Crumpet::Crumb' unless crumb.is_a? Crumpet::Crumb
  super
end

#add_crumb(*args) ⇒ Object



7
8
9
# File 'lib/crumpet/repository.rb', line 7

def add_crumb(*args)
  self << Crumpet::Crumb.new(*args)
end

#render(options = {}) ⇒ Object



3
4
5
# File 'lib/crumpet/repository.rb', line 3

def render(options = {})
  Crumpet::Renderer.render(self, options)
end