Method: Hyde::Page#initialize
- Defined in:
- lib/hyde/page.rb
#initialize(file, project = Hyde.project) ⇒ Page
Returns a new instance of Page.
112 113 114 115 116 |
# File 'lib/hyde/page.rb', line 112 def initialize(file, project=Hyde.project) @file = File.(file) if file.is_a?(String) @project = project raise Error if project.nil? end |