Sha256: e5645ba7e872b646740b2bc2fb1f8bcc37ab5e44e6fc129a3884197abbc6019d

Contents?: true

Size: 250 Bytes

Versions: 39

Compression:

Stored size: 250 Bytes

Contents

module Radius
  class OrdString < String
    if RUBY_VERSION[0,3] == '1.9'
      def [](*args)
        if args.size == 1 && args.first.is_a?(Integer)
          slice(args.first).ord
        else
          super
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 4 rubygems

Version Path
depengine-0.0.31 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.30 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.29 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.28 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.27 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.26 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.25 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.24 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.23 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.22 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.21 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.20 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.19 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.18 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.17 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.16 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.15 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.14 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.13 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.12 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb