Class: DR::DynamicModule

Inherits:
Module
  • Object
show all
Includes:
MetaModule
Defined in:
lib/drain/ruby_ext/meta_ext.rb

Overview

DynamicModule.new(:methods_to_include) do ... end

Instance Method Summary collapse

Methods included from MetaModule

#add_method, #add_methods, #full_include, #get_unbound_method, #include_ancestors, #include_complete, #includes_extends_host_with

Constructor Details

#initialize(*args, &block) ⇒ DynamicModule

Returns a new instance of DynamicModule.



204
205
206
207
# File 'lib/drain/ruby_ext/meta_ext.rb', line 204

def initialize(*args,&block)
	super #call the block
	add_methods(*args)
end