Class: Spore::SpecParser::Json

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#specsObject (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