lib/lookbook/preview_example.rb in lookbook-0.2.4 vs lib/lookbook/preview_example.rb in lookbook-0.3.0.beta.0

- old
+ new

@@ -39,12 +39,12 @@ def type :example end - def filter_match_string - [*@preview.lookbook_parent_collections, @preview.label, label].join("/").gsub(/\s/, "").downcase + def matchers + [@preview.label, label].map { |m| m.gsub(/\s/, "").downcase } end def hierarchy_depth @preview.lookbook_hierarchy_depth + 1 end @@ -60,9 +60,10 @@ Dir["#{p}/#{template_path}.html.*"].first end Pathname.new(Dir["#{base_path}/#{template_path}.html.*"].first) end + alias_method :group, :lookbook_group alias_method :notes, :lookbook_notes alias_method :hidden?, :lookbook_hidden? end end