Class: CodeInventory::Source::JSONFile
- Inherits:
-
Object
- Object
- CodeInventory::Source::JSONFile
- Defined in:
- lib/codeinventory/source/json_file.rb
Instance Attribute Summary collapse
-
#projects ⇒ Object
Returns the value of attribute projects.
Instance Method Summary collapse
-
#initialize(json_file) ⇒ JSONFile
constructor
A new instance of JSONFile.
Constructor Details
#initialize(json_file) ⇒ JSONFile
Returns a new instance of JSONFile.
8 9 10 |
# File 'lib/codeinventory/source/json_file.rb', line 8 def initialize(json_file) @projects = JSON.load(json_file) end |
Instance Attribute Details
#projects ⇒ Object
Returns the value of attribute projects.
6 7 8 |
# File 'lib/codeinventory/source/json_file.rb', line 6 def projects @projects end |