lib/crumpet/crumb.rb in crumpet-0.1.0 vs lib/crumpet/crumb.rb in crumpet-0.1.1

- old
+ new

@@ -1,12 +1,12 @@ module Crumpet class Crumb attr_reader :name, :url, :options - def initialize(name, url = nil, options = {}) + def initialize(name, *args) + @options = args.extract_options! @name = name - @url = url - @options = options + @url = args.first end def link? url.present? && option_or_default(:link).present? end