Class: CppCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/yesman/cpp_creator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ CppCreator

Returns a new instance of CppCreator.



12
13
14
15
16
# File 'lib/yesman/cpp_creator.rb', line 12

def initialize(params = {})
  set_defaults params
  @gen = FileGenerator.new
  @log = Logger.new
end

Instance Attribute Details

#extensionObject (readonly)

Returns the value of attribute extension.



10
11
12
# File 'lib/yesman/cpp_creator.rb', line 10

def extension
  @extension
end

#outputObject (readonly)

Returns the value of attribute output.



8
9
10
# File 'lib/yesman/cpp_creator.rb', line 8

def output
  @output
end

#project_nameObject (readonly)

Returns the value of attribute project_name.



9
10
11
# File 'lib/yesman/cpp_creator.rb', line 9

def project_name
  @project_name
end

#sourceObject (readonly)

Returns the value of attribute source.



6
7
8
# File 'lib/yesman/cpp_creator.rb', line 6

def source
  @source
end

#testsObject (readonly)

Returns the value of attribute tests.



7
8
9
# File 'lib/yesman/cpp_creator.rb', line 7

def tests
  @tests
end

Instance Method Details

#create_projectObject



18
19
20
21
22
23
# File 'lib/yesman/cpp_creator.rb', line 18

def create_project
  create_dirs
  create_source_main
  create_test_main
  create_build_file
end