Method: Orthor::StaticPage#initialize
- Defined in:
- lib/orthor/static_page.rb
#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 |