Class: Spore::SpecParser::Json
- Inherits:
-
Object
- Object
- Spore::SpecParser::Json
- Defined in:
- lib/spore/spec_parser/json.rb
Instance Attribute Summary collapse
-
#specs ⇒ Object
readonly
Returns the value of attribute specs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file) ⇒ Json
constructor
A new instance of Json.
Constructor Details
#initialize(file) ⇒ Json
Returns a new instance of Json.
10 11 12 13 14 |
# File 'lib/spore/spec_parser/json.rb', line 10 def initialize(file) @file = file @specs = nil load_file end |
Instance Attribute Details
#specs ⇒ Object (readonly)
Returns the value of attribute specs.
8 9 10 |
# File 'lib/spore/spec_parser/json.rb', line 8 def specs @specs end |
Class Method Details
.load_file(f) ⇒ Object
16 17 18 |
# File 'lib/spore/spec_parser/json.rb', line 16 def self.load_file(f) self.new(f).specs end |