Class: Cejo::Projects::ProjectsParser

Inherits:
Object
  • Object
show all
Defined in:
lib/cejo/projects/projects_parser.rb

Overview

Project Information

Instance Attribute Summary collapse

Instance Method Summary collapse

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_configObject (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

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/cejo/projects/projects_parser.rb', line 10

def name
  @name
end

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

#folderObject



18
19
20
# File 'lib/cejo/projects/projects_parser.rb', line 18

def folder
  main_config.join 'projects'
end

#projectObject

Project Information (Symbol : String)



35
36
37
# File 'lib/cejo/projects/projects_parser.rb', line 35

def project
  wanted.transform_keys(&:to_sym)
end