Sha256: df698dacfbe81bb347a4dd9239ce51a31bef3a78f76cf9ce96b8c9f2bfd18c06

Contents?: true

Size: 358 Bytes

Versions: 1

Compression:

Stored size: 358 Bytes

Contents

class String
  if self.method_defined?(:ord)
    def getord(offset); self[offset].ord; end
  else
    alias :getord :[]
  end

  unless self.method_defined?(:b)
    if self.method_defined?(:force_encoding)
      def b; self.dup.force_encoding(Encoding::ASCII_8BIT); end
    else
      def b; self.dup; end
    end
  end
end

PACK_IDX_SIGNATURE = "\377tOc".b

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
githug-0.3.1 lib/githug/extensions/grit/ruby1.9.rb