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.
10 11 12 |
# File 'lib/yesman/cpp_creator.rb', line 10 def initialize(params = {}) set_defaults params end |
Instance Attribute Details
#extension ⇒ Object (readonly)
Returns the value of attribute extension.
8 9 10 |
# File 'lib/yesman/cpp_creator.rb', line 8 def extension @extension end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
6 7 8 |
# File 'lib/yesman/cpp_creator.rb', line 6 def output @output end |
#project_name ⇒ Object (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 |
#source ⇒ Object (readonly)
Returns the value of attribute source.
4 5 6 |
# File 'lib/yesman/cpp_creator.rb', line 4 def source @source end |
#tests ⇒ Object (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_project ⇒ Object
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 |