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

Version Path
omf_common-6.0.8.pre.5 lib/omf_common/core_ext/string.rb
omf_common-6.0.7.1 lib/omf_common/core_ext/string.rb
omf_common-6.0.8.pre.4 lib/omf_common/core_ext/string.rb
omf_common-6.0.8.pre.3 lib/omf_common/core_ext/string.rb
omf_common-6.0.8.pre.2 lib/omf_common/core_ext/string.rb
omf_common-6.0.8.pre.1 lib/omf_common/core_ext/string.rb
omf_common-6.0.7 lib/omf_common/core_ext/string.rb
omf_common-6.0.6 lib/omf_common/core_ext/string.rb
omf_common-6.0.5 lib/omf_common/core_ext/string.rb
omf_common-6.0.4 lib/omf_common/core_ext/string.rb
omf_common-6.0.4.pre.1 lib/omf_common/core_ext/string.rb
omf_common-6.0.3 lib/omf_common/core_ext/string.rb
omf_common-6.0.2 lib/omf_common/core_ext/string.rb