Class: Swagger::Parsers::YAMLParser

Inherits:
Object
  • Object
show all
Defined in:
lib/swagger/parsers.rb

Overview

Parses YAML content

Class Method Summary collapse

Class Method Details

.parse(content) ⇒ Hash

Parses a YAML document

Parameters:

  • content (String)

    The YAML content to parse

Returns:

  • (Hash)

    the parsed content


23
24
25
# File 'lib/swagger/parsers.rb', line 23

def self.parse(content)
  YAML.load(content)
end