method

parse

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ConfigurationFile
parse(context: nil, **options) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/configuration_file.rb, line 21
    def parse(context: nil, **options)
      YAML.load(render(context), **options) || {}
    rescue Psych::SyntaxError => error
      raise "YAML syntax error occurred while parsing #{@content_path}. "              "Please note that YAML must be consistently indented using spaces. Tabs are not allowed. "              "Error: #{error.message}"
    end
Register or log in to add new notes.