Class: Toto::Archives

Inherits:
Array show all
Includes:
Template
Defined in:
lib/toto-haml.rb

Instance Method Summary collapse

Methods included from Template

included, #markdown, #method_missing

Constructor Details

#initialize(articles) ⇒ Archives

Returns a new instance of Archives.



204
205
206
# File 'lib/toto-haml.rb', line 204

def initialize articles
  self.replace articles
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Toto::Template

Instance Method Details

#to_htmlObject Also known as: to_s



208
209
210
# File 'lib/toto-haml.rb', line 208

def to_html
  super(:archives)
end