Class: IniFile

Inherits:
Object
  • Object
show all
Defined in:
lib/prx-ruby-aws-creds.rb

Overview

Normally IniFile tries to be clever about detecting number values in the file and casting them to Integers and Floats. This breaks on a value like 048723829744, becuase Integer() tries to treat that as an octal, but fails since it includes 8s and 9s, but Float(048723829744) treats it like a decimal and returns 48723829744.0. Even if Integer() didn’t fail it would drop the leading zero. We need to just treat these values as strings, so this gets rid of the fancy typecasting.

Defined Under Namespace

Classes: Parser