lib/rib.rb in rib-1.0.5 vs lib/rib.rb in rib-1.1.0
- old
+ new
@@ -1,10 +1,11 @@
require 'rib/shell'
module Rib
autoload :VERSION, 'rib/version'
+ Skip = Object.new
module_function
# All default Rib configs, would be passed to Shell.new in Rib.shell,
# but calling Shell.new directly won't bring this in.
def config
@@ -43,10 +44,10 @@
end
# All plugins which have been loaded into the memory regardless
# it's enabled or not.
def plugins
- Shell.ancestors[1..-1].select{ |a| a < Plugin }
+ Shell.ancestors[1..-1].select{ |a| a.singleton_class < Plugin }
end
# Convenient way to disable all plugins in the memory.
# This could also take a list of plugins and disable them.
def disable_plugins plugs=plugins