lib/lookbook/source_inspector.rb in lookbook-1.0.0.beta.6 vs lib/lookbook/source_inspector.rb in lookbook-1.0.0.beta.7
- old
+ new
@@ -77,7 +77,16 @@
end
def methods
code_object&.meths
end
+
+ def tags(name = nil)
+ tag_objects = code_object&.tags(name).presence || []
+ Lookbook::Tags.process_tags(tag_objects)
+ end
+
+ def tag(name = nil)
+ tags(name).first
+ end
end
end