Class: Hermeneutics::Cgi::Data::Yaml

Inherits:
Plain
  • Object
show all
Defined in:
lib/hermeneutics/cgi.rb

Instance Attribute Summary

Attributes inherited from Plain

#data

Instance Method Summary collapse

Methods inherited from Plain

#initialize

Constructor Details

This class inherits a constructor from Hermeneutics::Cgi::Data::Plain

Instance Method Details

#parse(&block) ⇒ Object



229
230
231
232
# File 'lib/hermeneutics/cgi.rb', line 229

def parse &block
  require "yaml"
  (YAML.load @data).each_pair &block
end