Sha256: 19a4ef8d667347ede319f16d29c63404ceeabc542cf7e76bfa7ae7eeed024a50

Contents?: true

Size: 348 Bytes

Versions: 10

Compression:

Stored size: 348 Bytes

Contents

# frozen_string_literal: true

require_relative 'tags'
require_relative 'nested_hash'

class ::Array
  ##
  ## 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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
doing-2.1.40 lib/doing/array/array.rb
doing-2.1.39 lib/doing/array/array.rb
doing-2.1.38 lib/doing/array/array.rb
doing-2.1.37 lib/doing/array/array.rb
doing-2.1.36 lib/doing/array/array.rb
doing-2.1.35 lib/doing/array/array.rb
doing-2.1.34 lib/doing/array/array.rb
doing-2.1.33 lib/doing/array/array.rb
doing-2.1.32 lib/doing/array/array.rb
doing-2.1.31pre lib/doing/array/array.rb