Class: Cartoonist::Sitemap

Inherits:
Object
  • Object
show all
Defined in:
lib/cartoonist.rb

Constant Summary collapse

@@all =
[]

Class Method Summary collapse

Class Method Details

.add(&block) ⇒ Object



290
291
292
# File 'lib/cartoonist.rb', line 290

def add(&block)
  @@all << block
end

.allObject



286
287
288
# File 'lib/cartoonist.rb', line 286

def all
  @@all.map(&:call).flatten
end