Sha256: 51f1ec0062f948bea4e41568b7e5bfd9a6c3f7ec6678078b091f81d3bed6cbf1

Contents?: true

Size: 111 Bytes

Versions: 69

Compression:

Stored size: 111 Bytes

Contents

Object.class_eval do
  def try(method, *args)
    self.send method, *args if self.respond_to?(method)
  end
end

Version data entries

69 entries across 69 versions & 8 rubygems

Version Path
andrewtimberlake-couch_potato-0.2.8.1 lib/core_ext/object.rb
andrewtimberlake-couch_potato-0.2.8.2 lib/core_ext/object.rb
andrewtimberlake-couch_potato-0.2.8.3 lib/core_ext/object.rb
andrewtimberlake-couch_potato-0.2.8.4 lib/core_ext/object.rb
langalex-couch_potato-0.1.1 lib/core_ext/object.rb
langalex-couch_potato-0.1 lib/core_ext/object.rb
langalex-couch_potato-0.2.0 lib/core_ext/object.rb
langalex-couch_potato-0.2.1 lib/core_ext/object.rb
langalex-couch_potato-0.2.11 lib/core_ext/object.rb
langalex-couch_potato-0.2.12 lib/core_ext/object.rb
langalex-couch_potato-0.2.2 lib/core_ext/object.rb
langalex-couch_potato-0.2.3 lib/core_ext/object.rb
langalex-couch_potato-0.2.4 lib/core_ext/object.rb
langalex-couch_potato-0.2.5 lib/core_ext/object.rb
langalex-couch_potato-0.2.6 lib/core_ext/object.rb
langalex-couch_potato-0.2.7 lib/core_ext/object.rb
langalex-couch_potato-0.2.8 lib/core_ext/object.rb
langalex-couch_potato-0.2.9 lib/core_ext/object.rb
speedmax-couch_potato-0.2.0 lib/core_ext/object.rb
speedmax-couch_potato-0.2.2 lib/core_ext/object.rb