lib/lookbook/entities/preview.rb in lookbook-1.4.0 vs lib/lookbook/entities/preview.rb in lookbook-1.4.1

- old
+ new

@@ -79,9 +79,9 @@ end def example_entities public_methods = preview_class.public_instance_methods(false) method_objects = code_object.meths.select { |m| public_methods.include?(m.name) } - method_objects.map { |code_object| PreviewExample.new(code_object, self) } + method_objects.map.with_index { |code_object, i| PreviewExample.new(code_object, self, position: i) } end end end