Sha256: 6eb7b2c8606da02397d909ee0199f801ab204bd97ed8976372f5b872ac229399
Contents?: true
Size: 641 Bytes
Versions: 5
Compression:
Stored size: 641 Bytes
Contents
# frozen_string_literal: true require_relative 'highlight' require_relative 'query' require_relative 'tags' require_relative 'transform' require_relative 'truncate' require_relative 'url' class ::String include Doing::Color include Doing::StringHighlight include Doing::StringQuery include Doing::StringTags include Doing::StringTransform include Doing::StringTruncate include Doing::StringURL ## ## Force UTF-8 encoding if available ## ## @return [String] UTF-8 encoded string ## def utf8 if String.method_defined? :force_encoding dup.force_encoding('utf-8') else self end end end
Version data entries
5 entries across 5 versions & 1 rubygems