Class: CodeInventory::JSONFile
- Inherits:
-
Object
- Object
- CodeInventory::JSONFile
- Defined in:
- lib/codeinventory/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.
7 8 9 |
# File 'lib/codeinventory/json_file.rb', line 7 def initialize(json_file) @projects = JSON.load(json_file) end |
Instance Attribute Details
#projects ⇒ Object
Returns the value of attribute projects.
5 6 7 |
# File 'lib/codeinventory/json_file.rb', line 5 def projects @projects end |