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.11 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.10 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.9 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.8 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.7 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.5 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.4 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.3 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.2 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
depengine-0.0.1 etc/isolate/ruby-1.8/gems/radius-0.6.1/lib/radius/ord_string.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/radius-0.7.3/lib/radius/ord_string.rb
radius-0.7.3 lib/radius/ord_string.rb
radius-0.7.2 lib/radius/ord_string.rb
radius-0.7.1 lib/radius/ord_string.rb
radius-0.7.0 lib/radius/ord_string.rb
radius-0.7.0.prerelease3 lib/radius/ord_string.rb
radius-0.7.0.prerelease2 lib/radius/ord_string.rb
radius-0.7.0.prerelease lib/radius/ord_string.rb
radiant-rails3-0.1 vendor/radius/lib/radius/ord_string.rb