Class: Radius::OrdString

Inherits:
String
  • Object
show all
Defined in:
lib/radius/ord_string.rb

Instance Method Summary collapse

Instance Method Details

#[](*args) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/radius/ord_string.rb', line 4

def [](*args)
  if args.size == 1 && args.first.is_a?(Integer)
    slice(args.first).ord
  else
    super
  end
end