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.



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

def initialize(params = {})
  set_defaults params
end

Instance Attribute Details

#extensionObject (readonly)

Returns the value of attribute extension.



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

def extension
  @extension
end

#outputObject (readonly)

Returns the value of attribute output.



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

def output
  @output
end

#project_nameObject (readonly)

Returns the value of attribute project_name.



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

def project_name
  @project_name
end

#sourceObject (readonly)

Returns the value of attribute source.



4
5
6
# File 'lib/yesman/cpp_creator.rb', line 4

def source
  @source
end

#testsObject (readonly)

Returns the value of attribute tests.



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

def tests
  @tests
end

Instance Method Details

#create_projectObject



14
15
16
17
18
# File 'lib/yesman/cpp_creator.rb', line 14

def create_project
  create_dirs
  create_source_main
  create_test_main
end