Module: Preseason::GeneratorContext

Included in:
Colorize, Config, Recipe
Defined in:
lib/preseason/generator_context.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &blk) ⇒ Object



16
17
18
# File 'lib/preseason/generator_context.rb', line 16

def method_missing(meth, *args, &blk)
  GeneratorContext.context.send meth, *args, &blk
end

Class Attribute Details

.contextObject

Returns the value of attribute context.



4
5
6
# File 'lib/preseason/generator_context.rb', line 4

def context
  @context
end