class Psych::Inherit::File::Parser

Public Instance Methods

load_file(file) click to toggle source
# File lib/psych/inherit/file/parser.rb, line 7
def load_file(file)
  parse_file(file).to_ruby
end
parse(content) click to toggle source
# File lib/psych/inherit/file/parser.rb, line 18
def parse(content)
  parser = Psych::Parser.new(File::Handler.new(self))
  parser.parse(content).handler.document
end
parse_file(file) click to toggle source
# File lib/psych/inherit/file/parser.rb, line 11
def parse_file(file)
  parse(::File.read(file))
rescue StandardError => e
  # STDOUT.puts "Error while reading file #{file}: #{e}"
  raise e
end