Class: Zenweb::FakePage

Inherits:
Page
  • Object
show all
Defined in:
lib/zenweb/page.rb

Overview

A page not rooted in an actual file. This lets you synthesize pages directly in rake tasks. Initialize it with a destination path as normal, but then you must set the date and content yourself.

Direct Known Subclasses

GeneratedIndex

Constant Summary

Constants inherited from Page

Page::KRAMDOWN_CONFIG

Instance Attribute Summary collapse

Attributes inherited from Page

#binary, #parent, #path, #site, #subpages

Method Summary

Methods inherited from Page

#[], #all_subpages, #all_subpages_by_level, #analytics, #body, #breadcrumbs, #change_frequency, #clean_url, #config, #date_from_path, #date_str, #dated?, #dated_path?, #depends_on, #disqus, #disqus_counts, #erb, #extend_md, #filetype, #filetypes, #format_date, #gauges_analytics, #generate, #google_ad, #google_analytics, #html?, #include, #index?, #initialize, #inspect, #layout, #link_head, #link_html, #markdown, #meta, #method_missing, #no_index?, #parent_url, #render, #render_erb, #render_less, #render_md, renderers_re, #run_js_script, #series_page, #stale?, #stylesheet, #subrender, #tag_pages, #url, #url_dir, #url_path, #wire

Constructor Details

This class inherits a constructor from Zenweb::Page

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Zenweb::Page

Instance Attribute Details

#contentObject

Returns the value of attribute content.



503
504
505
# File 'lib/zenweb/page.rb', line 503

def content
  @content
end

#dateObject

Returns the value of attribute date.



504
505
506
# File 'lib/zenweb/page.rb', line 504

def date
  @date
end