lib/miu/plugin.rb in miu-0.0.6 vs lib/miu/plugin.rb in miu-0.1.0
- old
+ new
@@ -15,10 +15,10 @@
module ClassMethods
attr_accessor :called_from
def register(*args, &block)
- options = args.last.is_a?(::Hash) ? args.pop : {}
+ options = Miu::Utility.extract_options!(args)
name = args.shift
plugin = args.shift || self
Miu.register name, plugin, options, &block
end
end