Method: Enhance::Enhancer#initialize

Defined in:
lib/enhance/enhancer.rb

#initialize(app = nil) {|@config| ... } ⇒ Enhancer

Returns a new instance of Enhancer.

Yields:

  • (@config)


5
6
7
8
9
# File 'lib/enhance/enhancer.rb', line 5

def initialize app = nil
  @app = app
  @config = Enhance::Config.new
  yield @config if block_given?
end