Method: Orthor::StaticPage#initialize

Defined in:
lib/orthor/static_page.rb

#initialize(path, options = {}) ⇒ StaticPage

Returns a new instance of StaticPage.

Raises:

  • (ArgumentError)


9
10
11
12
13
14
# File 'lib/orthor/static_page.rb', line 9

def initialize(path, options = {})
  @path = path
  raise ArgumentError, "Path required" unless @path

  options.each { |key, val| send(key, val) }
end