Sha256: d57200a9242bba44fc5458f3bf5445a4ed01a6b18ed82d0d9af8efd291841a08

Contents?: true

Size: 195 Bytes

Versions: 2

Compression:

Stored size: 195 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/radius-0.8.0/lib/radius/ord_string.rb
radius-0.8.0 lib/radius/ord_string.rb