Module: Flumtter::Plugins
- Defined in:
- lib/flumtter/app/core/plugins.rb
Defined Under Namespace
Modules: Base
Class Method Summary collapse
Class Method Details
.plugin(blk) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/flumtter/app/core/plugins.rb', line 16 def plugin(blk) m = self.const_set(File.basename(blk.source_location[0], '.rb').to_camel.to_sym, Module.new) m.extend(Base) m.extend(Util) m.instance_eval(&blk) end |