Sha256: f8a4f6165d971a708cd2f288bca97d70ceb5c09a04cc470b8a687a213438b2db

Contents?: true

Size: 274 Bytes

Versions: 1

Compression:

Stored size: 274 Bytes

Contents

if RUBY_VERSION < '1.9'

  class String
    def _utf8
      self
    end
  
    def _binary
      self
    end
  end

else 

  class String
    def _utf8
      self.force_encoding('utf-8')
    end
    
    def _binary
      self.force_encoding('binary')
    end
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
encoding-kawai-0.1 lib/encoding-kawai.rb