Class: Orthor::StaticPage
- Inherits:
-
Object
- Object
- Orthor::StaticPage
- Includes:
- HttpCaching, MetaData
- Defined in:
- lib/orthor/static_page.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, options = {}) ⇒ StaticPage
constructor
A new instance of StaticPage.
- #path_name ⇒ Object
- #title ⇒ Object
Methods included from HttpCaching
Constructor Details
#initialize(path, options = {}) ⇒ StaticPage
Returns a new instance of StaticPage.
9 10 11 12 13 14 |
# File 'lib/orthor/static_page.rb', line 9 def initialize(path, = {}) @path = path raise ArgumentError, "Path required" unless @path .each { |key, val| send(key, val) } end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/orthor/static_page.rb', line 6 def path @path end |