Sha256: 78b941917fbda10206d6e0354906f5143f611dcf875496dcbb0f92424282706c

Contents?: true

Size: 202 Bytes

Versions: 1

Compression:

Stored size: 202 Bytes

Contents

class String
  if ((defined? RUBY_VERSION) && (RUBY_VERSION[0..2] == "1.9" || RUBY_VERSION.split(".")[0].to_i >= 2))
    def getord(offset); self[offset].ord; end
  else
    alias :getord :[]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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