Class: Toggle::Parser::YAML

Inherits:
Object
  • Object
show all
Defined in:
lib/toggle/parser/yaml.rb

Instance Method Summary collapse

Instance Method Details

#parse(content) ⇒ Object



5
6
7
8
9
# File 'lib/toggle/parser/yaml.rb', line 5

def parse content
  require 'erb'
  require 'yaml'
  ::YAML.load(::ERB.new(content).result.chomp)
end