Sha256: d9491af6ffd6ec363fa49268f1a8549f22fb6a1550b98816253c4ee8f139984b

Contents?: true

Size: 414 Bytes

Versions: 2

Compression:

Stored size: 414 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the MIT license.

module Ramaze
  module CoreExtensions
    # Extensions for String
    module String
      unless ''.respond_to?(:ord)
        # compatibility with Ruby 1.9
        def ord
          self[0]
        end
      end
    end # String
  end # CoreExtensions
end # Ramaze

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-2012.04.14 lib/ramaze/snippets/string/ord.rb
ramaze-2012.03.07 lib/ramaze/snippets/string/ord.rb