lib/trestle/navigation/group.rb in trestle-0.10.0 vs lib/trestle/navigation/group.rb in trestle-0.10.1
- old
+ new
@@ -1,11 +1,11 @@
module Trestle
class Navigation
class Group
attr_reader :name, :options
- def initialize(name, options={})
+ def initialize(name, **options)
@name, @options = name.to_s, options
end
def ==(other)
other.is_a?(self.class) && name == other.name
@@ -24,10 +24,10 @@
1
end
end
def merge(other)
- self.class.new(name, options.merge(other.options))
+ self.class.new(name, **options.merge(other.options))
end
def priority
case options[:priority]
when :first