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


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

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