Class: Hermeneutics::Cgi::Data::Json

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



223
224
225
226
# File 'lib/hermeneutics/cgi.rb', line 223

def parse &block
  require "json"
  (JSON.load @data).each_pair &block
end