Class: Perennial::Generator::CommandEnv
- Inherits:
-
Application::CommandEnv
- Object
- Application::CommandEnv
- Perennial::Generator::CommandEnv
- Defined in:
- lib/perennial/generator.rb
Instance Method Summary collapse
-
#initialize ⇒ CommandEnv
constructor
A new instance of CommandEnv.
Constructor Details
#initialize ⇒ CommandEnv
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 |