Class: Ruth::Gemfile::JSON

Inherits:
Object
  • Object
show all
Defined in:
lib/ruth/json.rb

Overview

JSON suppoer for Ruth

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#jsonObject

Returns the value of attribute json.



5
6
7
# File 'lib/ruth/json.rb', line 5

def json
  @json
end