diff options
author | Steve Huff <shuff@vecna.org> | 2013-03-29 12:03:33 -0400 |
---|---|---|
committer | Steve Huff <shuff@vecna.org> | 2013-03-29 12:54:37 -0400 |
commit | 4a5218a8af8c3ffaf9ea2348a3900b19d6a95416 (patch) | |
tree | a3d965b79112bfc025258831afb2467ecbb1c9bd /lib/puppet/parser/functions/unique.rb | |
parent | e6916f83fd35989db4b86dfb10716c9198994389 (diff) | |
download | puppet-stdlib-4a5218a8af8c3ffaf9ea2348a3900b19d6a95416.tar.gz puppet-stdlib-4a5218a8af8c3ffaf9ea2348a3900b19d6a95416.tar.bz2 |
Reworked number-handling logic
No more coercing to String and regex matching. Instead, we now coerce
to Integer at the beginning or raise an error if we cannot coerce to
Integer.
A consequence of this change is that the function will now accept
blatantly non-numeric strings as input, and return false. This seems a
bit goofy to me, but it's how String#to_i works. If we really don't
like this, then I'm open to suggestions.
Diffstat (limited to 'lib/puppet/parser/functions/unique.rb')
0 files changed, 0 insertions, 0 deletions