Class: AutoCode::Initializer

Inherits:
Object
  • Object
show all
Defined in:
lib/auto_code.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Initializer

Returns a new instance of Initializer.



33
# File 'lib/auto_code.rb', line 33

def initialize( &block ) ;@block = block ; end

Instance Method Details

#call(mod) ⇒ Object



34
# File 'lib/auto_code.rb', line 34

def call( mod ) ; mod.module_eval( &@block ) ; end