Class: IniFile::Parser
- Inherits:
-
Object
- Object
- IniFile::Parser
- Defined in:
- lib/prx-ruby-aws-creds.rb
Instance Method Summary collapse
Instance Method Details
#typecast(value) ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/prx-ruby-aws-creds.rb', line 23 def typecast(value) case value when %r{\Atrue\z}i then true when %r{\Afalse\z}i then false when %r{\A\s*\z}i then nil else unescape_value(value) end end |