lib/ting_yun/support/coerce.rb in tingyun_rpm-1.1.4.2 vs lib/ting_yun/support/coerce.rb in tingyun_rpm-1.2.0

- old
+ new

@@ -10,9 +10,10 @@ # to provide documentation of expected types on to_collector_array methods, # and to log failures if totally invalid data gets into outgoing data module Coerce module_function + def int(value, context=nil) Integer(value) rescue => error log_failure(value, Integer, context, error) 0