Class: HecksDomain::CLI::GenerateDomainObject
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- HecksDomain::CLI::GenerateDomainObject
- Includes:
- Thor::Actions
- Defined in:
- lib/cli/generate_domain_object.rb,
lib/cli/domain_object/option_formatter.rb,
lib/cli/domain_object/assignment_template.rb
Overview
Helpful methods for supporting object creation
Defined Under Namespace
Classes: AssignmentTemplate, OptionFormatter
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
15 16 17 |
# File 'lib/cli/generate_domain_object.rb', line 15 def self.source_root File.dirname(__FILE__) + '/templates' end |
Instance Method Details
#create_aggregate_folder ⇒ Object
19 20 21 |
# File 'lib/cli/generate_domain_object.rb', line 19 def create_aggregate_folder directory([:type].to_s, '.') end |