lib/lookbook/preview_group.rb in lookbook-1.0.0.beta.6 vs lib/lookbook/preview_group.rb in lookbook-1.0.0.beta.7

- old
+ new

@@ -47,8 +47,16 @@ def hierarchy_depth @preview.hierarchy_depth + 1 end + def tags(name = nil) + examples.map { |example| example.tags(name) }.flatten + end + + def tag(name = nil) + tags(name).first + end + alias_method :lookup_path, :path end end