Class: Cartoonist::Sitemap
- Inherits:
-
Object
- Object
- Cartoonist::Sitemap
- 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 |
.all ⇒ Object
286 287 288 |
# File 'lib/cartoonist.rb', line 286 def all @@all.map(&:call).flatten end |