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.
11 12 13 14 |
# File 'lib/yesman/cpp_creator.rb', line 11 def initialize(params = {}) set_defaults params @gen = ClassGenerator.new end |
Instance Attribute Details
#extension ⇒ Object (readonly)
Returns the value of attribute extension.
9 10 11 |
# File 'lib/yesman/cpp_creator.rb', line 9 def extension @extension end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
7 8 9 |
# File 'lib/yesman/cpp_creator.rb', line 7 def output @output end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
8 9 10 |
# File 'lib/yesman/cpp_creator.rb', line 8 def project_name @project_name end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
5 6 7 |
# File 'lib/yesman/cpp_creator.rb', line 5 def source @source end |
#tests ⇒ Object (readonly)
Returns the value of attribute tests.
6 7 8 |
# File 'lib/yesman/cpp_creator.rb', line 6 def tests @tests end |
Instance Method Details
#create_project ⇒ Object
16 17 18 19 20 |
# File 'lib/yesman/cpp_creator.rb', line 16 def create_project create_dirs create_source_main create_test_main end |