Class: Generators::Avo::BaseGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/avo/base_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ BaseGenerator

Returns a new instance of BaseGenerator.



8
9
10
11
12
13
14
15
# File 'lib/generators/avo/base_generator.rb', line 8

def initialize(*args)
  super(*args)

  # Don't output the version if requested so
  unless args.include?(["--skip-avo-version"])
    invoke "avo:version", *args
  end
end