lib/tocer/transformers/text.rb in tocer-16.2.1 vs lib/tocer/transformers/text.rb in tocer-17.0.0

- old
+ new

@@ -1,14 +1,14 @@ # frozen_string_literal: true require "core" -require "refinements/arrays" +require "refinements/array" module Tocer module Transformers # Transforms a Markdown header (plain text) into a table of contents link. class Text - using Refinements::Arrays + using Refinements::Array def initialize text, parser: Parsers::Header @parser = parser.new text end