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
thefool808-couch_potato-0.2.7 lib/core_ext/object.rb
couch_potato-0.6.0 lib/core_ext/object.rb
couch_potato-0.5.7 lib/core_ext/object.rb
couch_potato-rails2-0.5.10 lib/core_ext/object.rb
couch_potato-rails2-0.5.9 lib/core_ext/object.rb
couch_potato-rails2-0.5.8 lib/core_ext/object.rb
couch_potato-rails2-0.5.7 lib/core_ext/object.rb
couch_potato-rails2-0.5.6 lib/core_ext/object.rb
couch_potato-0.5.6 lib/core_ext/object.rb
couch_potato-0.5.5 lib/core_ext/object.rb
couch_potato-0.5.4 lib/core_ext/object.rb
couch_potato-0.5.3 lib/core_ext/object.rb
couch_potato-0.5.2 lib/core_ext/object.rb
couch_potato-0.5.1 lib/core_ext/object.rb
couch_potato-0.5.0 lib/core_ext/object.rb
davber_couch_potato-0.4.0 lib/core_ext/object.rb
couch_potato-0.4.0 lib/core_ext/object.rb
couch_potato-0.3.2 lib/core_ext/object.rb
couch_potato-0.3.1 lib/core_ext/object.rb
davber_couch_potato-0.3.0 lib/core_ext/object.rb