module Yarrow::Format::Methods::Metadata::ClassMethods

Public Instance Methods

parse(text) click to toggle source
# File lib/yarrow/format/methods/metadata.rb, line 11
def parse(text)
  new(text)
end
read(path) click to toggle source
# 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