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
couch_potato-0.2.15 lib/core_ext/object.rb
couch_potato-0.2.14 lib/core_ext/object.rb
couch_potato-0.2.13 lib/core_ext/object.rb
couch_tomato-0.1.4 lib/core_ext/object.rb
couch_tomato-0.1.3 lib/core_ext/object.rb
couch_tomato-0.1.2 lib/core_ext/object.rb
couch_tomato-0.1.1 lib/core_ext/object.rb
couch_tomato-0.1.0 lib/core_ext/object.rb
couch_potato-0.2.12 lib/core_ext/object.rb