Method: Webby::Resources::Partial#initialize

Defined in:
lib/webby/resources/partial.rb

#initialize(fn) ⇒ Partial

call-seq:

Partial.new( path )

Creates a new Partial object given the full path to the partial file. Partial filenames start with an underscore (this is an enforced convention).



24
25
26
27
28
29
30
# File 'lib/webby/resources/partial.rb', line 24

def initialize( fn )
  super

  @_meta_data = MetaFile.(@path)
  @_meta_data ||= {}
  @_meta_data.sanitize!
end