Class: AutoCode::Initializer
- Inherits:
-
Object
- Object
- AutoCode::Initializer
- Defined in:
- lib/auto_code.rb
Instance Method Summary collapse
- #call(mod) ⇒ Object
-
#initialize(&block) ⇒ Initializer
constructor
A new instance of Initializer.
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 |