Class: Perennial::Generator::CommandEnv

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

Instance Method Summary collapse

Constructor Details

#initializeCommandEnv

Returns a new instance of CommandEnv.



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

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)



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

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