Module: Yarrow::Format::Methods::Metadata::ClassMethods
- Defined in:
- lib/yarrow/format/methods/metadata.rb
Instance Method Summary collapse
Instance Method Details
#parse(text) ⇒ Object
11 12 13 |
# File 'lib/yarrow/format/methods/metadata.rb', line 11 def parse(text) new(text) end |
#read(path) ⇒ Object
6 7 8 9 |
# File 'lib/yarrow/format/methods/metadata.rb', line 6 def read(path) text = File.read(path, :encoding => "utf-8") Yarrow::Format::Contents.new(nil, parse(text)) end |