Class: CppCreator
- Inherits:
-
Object
- Object
- CppCreator
- Defined in:
- lib/yesman/cpp_creator.rb
Instance Attribute Summary collapse
-
#extension ⇒ Object
readonly
Returns the value of attribute extension.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#tests ⇒ Object
readonly
Returns the value of attribute tests.
Instance Method Summary collapse
- #create_project ⇒ Object
-
#initialize(params = {}) ⇒ CppCreator
constructor
A new instance of CppCreator.
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
#extension ⇒ Object (readonly)
Returns the value of attribute extension.
10 11 12 |
# File 'lib/yesman/cpp_creator.rb', line 10 def extension @extension end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
8 9 10 |
# File 'lib/yesman/cpp_creator.rb', line 8 def output @output end |
#project_name ⇒ Object (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 |
#source ⇒ Object (readonly)
Returns the value of attribute source.
6 7 8 |
# File 'lib/yesman/cpp_creator.rb', line 6 def source @source end |
#tests ⇒ Object (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_project ⇒ Object
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 |