Sha256: 3036efa018d8a7bb1c460dcd0097dc1aa81df19faf58aa8eb1d24b12c962db97

Contents?: true

Size: 199 Bytes

Versions: 11

Compression:

Stored size: 199 Bytes

Contents

class Object
  unless defined?(try)
    def try(method, *options, &block)
      send(method, *options, &block)
    end
  end
end

class NilClass
  def try(method, *options, &block)
    nil
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
db-charmer-1.6.19 lib/db_charmer/core_extensions.rb
db-charmer-1.6.18 lib/db_charmer/core_extensions.rb
db-charmer-1.6.17 lib/db_charmer/core_extensions.rb
db-charmer-1.6.16 lib/db_charmer/core_extensions.rb
db-charmer-1.6.15 lib/db_charmer/core_extensions.rb
db-charmer-1.6.14 lib/db_charmer/core_extensions.rb
db-charmer-1.6.13 lib/db_charmer/core_extensions.rb
db-charmer-1.6.12 lib/db_charmer/core_extensions.rb
db-charmer-1.6.11 lib/db_charmer/core_extensions.rb
db-charmer-1.6.10 lib/db_charmer/core_extensions.rb
db-charmer-1.6.9 lib/db_charmer/core_extensions.rb