Class: Toto::Archives
- Includes:
- Template
- Defined in:
- lib/toto-haml.rb
Instance Method Summary collapse
-
#initialize(articles) ⇒ Archives
constructor
A new instance of Archives.
- #to_html ⇒ Object (also: #to_s)
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_html ⇒ Object Also known as: to_s
208 209 210 |
# File 'lib/toto-haml.rb', line 208 def to_html super(:archives) end |