Class: Ruth::Gemfile::JSON
- Inherits:
-
Object
- Object
- Ruth::Gemfile::JSON
- Defined in:
- lib/ruth/json.rb
Overview
JSON suppoer for Ruth
Instance Attribute Summary collapse
-
#json ⇒ Object
Returns the value of attribute json.
Instance Method Summary collapse
-
#initialize(json) ⇒ JSON
constructor
A new instance of JSON.
Constructor Details
#initialize(json) ⇒ JSON
Returns a new instance of JSON.
7 8 9 10 |
# File 'lib/ruth/json.rb', line 7 def initialize(json) @json = json @data = parse_json_file end |
Instance Attribute Details
#json ⇒ Object
Returns the value of attribute json.
5 6 7 |
# File 'lib/ruth/json.rb', line 5 def json @json end |