Method: Webby::Resources::MetaFile.meta_data

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

.meta_data(name) ⇒ Object

call-seq:

MetaFile.( filename )    => object or nil

Opens the file identified by filename and returns the meta-data located at the top of the file. If the file contains no meta-data, then nil is returned.



50
51
52
# File 'lib/webby/resources/meta_file.rb', line 50

def self.( name )
  ::File.open(name, 'r') {|fd| MetaFile.new(fd).}
end