Class: Sequent::Generator::Aggregate
- Inherits:
-
Object
- Object
- Sequent::Generator::Aggregate
- Defined in:
- lib/sequent/generator/aggregate.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(name) ⇒ Aggregate
constructor
A new instance of Aggregate.
- #name ⇒ Object
Constructor Details
#initialize(name) ⇒ Aggregate
Returns a new instance of Aggregate.
12 13 14 |
# File 'lib/sequent/generator/aggregate.rb', line 12 def initialize(name) @name = name end |
Instance Method Details
#execute ⇒ Object
16 17 18 19 20 21 |
# File 'lib/sequent/generator/aggregate.rb', line 16 def execute ensure_not_used! copy_files rename_files replace_template_aggregate end |
#name ⇒ Object
23 24 25 |
# File 'lib/sequent/generator/aggregate.rb', line 23 def name @name ||= File.basename(path) end |