Sha256: 1938c8d1d4cb12a7909be778f38026e3dfef71f4cda00b0c0be2e56c48d2bbc1

Contents?: true

Size: 374 Bytes

Versions: 2

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

class Groupie
  module CoreExt
    # This module monkey patches String to respond to #tokenize
    module String
      def tokenize
        warn "Please use Groupie.tokenize instead of String#tokenize (from #{caller(1..1).first})"
        Groupie.tokenize(self)
      end
    end
  end
end

class String
  include Groupie::CoreExt::String
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
groupie-0.4.1 lib/groupie/core_ext/string.rb
groupie-0.4.0 lib/groupie/core_ext/string.rb