Class: Cejo::Projects::ProjectsParser
- Inherits:
-
Object
- Object
- Cejo::Projects::ProjectsParser
- Defined in:
- lib/cejo/projects/projects_parser.rb
Overview
Project Information
Instance Attribute Summary collapse
-
#main_config ⇒ Object
readonly
Returns the value of attribute main_config.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#utils ⇒ Object
readonly
Returns the value of attribute utils.
Instance Method Summary collapse
- #folder ⇒ Object
-
#initialize(folders, utils, name) ⇒ ProjectsParser
constructor
A new instance of ProjectsParser.
-
#project ⇒ Object
Project Information (Symbol : String).
Constructor Details
#initialize(folders, utils, name) ⇒ ProjectsParser
Returns a new instance of ProjectsParser.
12 13 14 15 16 |
# File 'lib/cejo/projects/projects_parser.rb', line 12 def initialize(folders, utils, name) @main_config = folders.cejo_config @utils = utils @name = name end |
Instance Attribute Details
#main_config ⇒ Object (readonly)
Returns the value of attribute main_config.
10 11 12 |
# File 'lib/cejo/projects/projects_parser.rb', line 10 def main_config @main_config end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/cejo/projects/projects_parser.rb', line 10 def name @name end |
#utils ⇒ Object (readonly)
Returns the value of attribute utils.
10 11 12 |
# File 'lib/cejo/projects/projects_parser.rb', line 10 def utils @utils end |
Instance Method Details
#folder ⇒ Object
18 19 20 |
# File 'lib/cejo/projects/projects_parser.rb', line 18 def folder main_config.join 'projects' end |
#project ⇒ Object
Project Information (Symbol : String)
35 36 37 |
# File 'lib/cejo/projects/projects_parser.rb', line 35 def project wanted.transform_keys(&:to_sym) end |