summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/num2bool.rb
AgeCommit message (Collapse)Author
2013-03-29Reworked number-handling logicSteve Huff
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.
2013-03-29Enable num2bool to accept numeric inputSteve Huff
Also ignore rspec fixtures directory
2011-07-29(#3) Apply missing documentation to more functions.Ken Barber
2011-04-30Convert to module format.Ken Barber