lib/procemon/function/str2duck.rb in procemon-0.1.5 vs lib/procemon/function/str2duck.rb in procemon-0.2.0
- old
+ new
@@ -1,6 +1,7 @@
# duck typing
class String
+
def duck
begin
if self == self.to_f.to_s
return self.to_f
\ No newline at end of file