Sha256: a65b1550298a8243ac0058f868f7fbecdb11141d307f5a3a209fefbf11cd66bc
Contents?: true
Size: 497 Bytes
Versions: 32
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true require_relative 'tags' require_relative 'nested_hash' require_relative 'cleanup' module Doing class ::Array include ArrayTags include ArrayNestedHash include ArrayCleanup ## ## Force UTF-8 encoding of strings in array ## ## @return [Array] Encoded lines ## def utf8 c = self.class if String.method_defined? :force_encoding replace c.new(map(&:utf8)) else self end end end end
Version data entries
32 entries across 32 versions & 1 rubygems