Module: Scripting::Pluggable::InstanceMethods

Defined in:
lib/scripting/pluggable.rb

Instance Method Summary collapse

Instance Method Details

#plugin(mod, *args) ⇒ Object



27
28
29
30
31
32
# File 'lib/scripting/pluggable.rb', line 27

def plugin mod, *args
  self.class.plugin mod, *args
  if mod.respond_to? :instance_init
    mod.instance_init(self, *args)
  end
end

#pluginsObject



23
24
25
# File 'lib/scripting/pluggable.rb', line 23

def plugins
  self.class.plugins
end