lib/loaf/crumb.rb in loaf-0.3.0 vs lib/loaf/crumb.rb in loaf-0.4.0
- old
+ new
@@ -1,6 +1,18 @@
# encoding: utf-8
module Loaf
# Basic crumb container
- Crumb = Struct.new(:name, :url, :styles)
+ class Crumb
+ attr_reader :name
+
+ attr_reader :url
+
+ attr_reader :force
+
+ def initialize(name, url, options = {})
+ @name = name
+ @url = url
+ @force = options.fetch(:force) { false }
+ end
+ end
end # Loaf