Sha256: 6b2c5e2e89ced2f280daae6118181e23942e82e37404c4593f93cd13ef9d7651

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

# encoding: UTF-8

# This file provides Ruby 1.8 compatibility. The intended functionality
# is not present, because we cannot guess the original encoding, thus
# making Iconv unsuitable for a conversion.
if RUBY_VERSION < "1.9"
  class String
    def force_encoding(encoding)
      self
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ohm-0.0.25 lib/ohm/compat.rb
ohm-0.0.24 lib/ohm/compat.rb