puppetlabs-stdlib/lib/puppet
Steve Huff 8d217f0012 (19864) num2bool match fix
This is a bit more heavy-handed than I might like, but it does appear to
do the right things:

* accepts numeric input appropriately, truncating floats
* matches string input against a regex, then coerces number-looking
  strings to int
* makes a best effort to coerce anything else to a string, then subjects
  it to the same treatment
* raises an error in the event of incorrect number of arguments or
  non-number-looking strings

I've also included some additional unit tests.
2013-03-29 15:06:36 -04:00
..
parser/functions (19864) num2bool match fix 2013-03-29 15:06:36 -04:00
provider/file_line changed .count to .size to support legacy ruby 2013-02-18 12:21:34 -08:00
type (#14670) autorequire a file_line resource's path 2012-11-26 10:35:18 -08:00