Sha256: b3f80233e8bf40305726191b28e56edbcc3676dc6aff9283881c0b8ba09935b8
Contents?: true
Size: 449 Bytes
Versions: 13
Compression:
Stored size: 449 Bytes
Contents
# Copyright (c) 2012 National ICT Australia Limited (NICTA). # This software may be used and distributed solely under the terms of the MIT license (License). # You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT. # By downloading or using this software you accept the terms and the liability disclaimer in the License. class String def ducktype Integer(self) rescue Float(self) rescue self end end
Version data entries
13 entries across 13 versions & 1 rubygems