Class: Perennial::Generator::CommandEnv

Inherits:
Application::CommandEnv show all
Defined in:
lib/perennial/generator.rb

Instance Method Summary collapse

Methods inherited from Application::CommandEnv

execute

Methods included from Loggable

included, #logger

Constructor Details

#initializeCommandEnv

Returns a new instance of CommandEnv.



10
11
12
# File 'lib/perennial/generator.rb', line 10

def initialize
  @generator = nil
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &blk) ⇒ Object (protected)



20
21
22
23
24
25
26
# File 'lib/perennial/generator.rb', line 20

def method_missing(name, *args, &blk)
  if @generator && @generator.respond_to?(name)
    @generator.send(name, *args, &blk)
  else
    super
  end
end