Sha256: e99374556171e83dfc5f7bc2f1b592e8e742c2d92bf4153e9e0c30892fd5d177

Contents?: true

Size: 644 Bytes

Versions: 2

Compression:

Stored size: 644 Bytes

Contents

class CharacterSet
  module CoreExt
    module StringExt
      def character_set
        CharacterSet.of(self)
      end

      def covered_by_character_set?(set)
        set.cover?(self)
      end

      def uses_character_set?(set)
        set.used_by?(self)
      end

      def delete_character_set(set)
        set.delete_in(self)
      end

      def delete_character_set!(set)
        set.delete_in!(self)
      end

      def keep_character_set(set)
        set.keep_in(self)
      end

      def keep_character_set!(set)
        set.keep_in!(self)
      end
    end
  end
end

::String.send(:include, CharacterSet::CoreExt::StringExt)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
character_set-1.0.0-java lib/character_set/core_ext/string_ext.rb
character_set-1.0.0 lib/character_set/core_ext/string_ext.rb