Class: Sequent::Generator::Aggregate

Inherits:
Object
  • Object
show all
Defined in:
lib/sequent/generator/aggregate.rb

Instance Method Summary collapse

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

#executeObject



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

#nameObject



23
24
25
# File 'lib/sequent/generator/aggregate.rb', line 23

def name
  @name ||= File.basename(path)
end