Class: Writecast::All_tags_index

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

Instance Method Summary collapse

Constructor Details

#initialize(tags_hash) ⇒ All_tags_index

Returns a new instance of All_tags_index.



222
223
224
# File 'lib/writecast/models.rb', line 222

def initialize(tags_hash)
    @tags_hash = tags_hash
end

Instance Method Details

#to_html(pages) ⇒ Object



226
227
228
229
230
231
# File 'lib/writecast/models.rb', line 226

def to_html(pages)
    title_tag = SITE_TITLE + SEPARATOR + "All tags"
    All_tags_index_view.new(:doc => self, :tags_hash => @tags_hash,
                            :pages => pages, :title_tag => title_tag
                           ).to_html(:prettyprint => PRETTY_HTML)
end