lib/tocer/transformers/text.rb in tocer-2.2.0 vs lib/tocer/transformers/text.rb in tocer-3.0.0
- old
+ new
@@ -1,13 +1,13 @@
# frozen_string_literal: true
-require "refinements/array_extensions"
+require "refinements/arrays"
module Tocer
module Transformers
# Transforms a Markdown header (plain text) into a table of contents link.
class Text
- using Refinements::ArrayExtensions
+ using Refinements::Arrays
def initialize text, header: Parsers::Header
@header = header.new text
end