lib/lookbook/source_inspector.rb in lookbook-1.0.4 vs lib/lookbook/source_inspector.rb in lookbook-1.0.5

- old
+ new

@@ -3,11 +3,11 @@ include Utils attr_reader :code_object delegate :groups, :source, to: :@code_object, allow_nil: true - def initialize(taggable_object_path) - @code_object = Lookbook::Engine.parser.get_code_object(taggable_object_path) + def initialize(code_object) + @code_object = code_object end def hidden? @hidden ||= if code_object&.tag(:hidden) code_object.tag(:hidden).text.strip != "false"