Sha256: fc9b425ad0264a30e81c249b35b489a46fc019d455abd5c37a4659b0b1c88609

Contents?: true

Size: 173 Bytes

Versions: 73

Compression:

Stored size: 173 Bytes

Contents

module ObjectExtensions
  def try_all(*methods)
    methods.map(&:to_sym).each do |method|
      next unless respond_to?(method)
      return send(method)
    end
  end
end

Version data entries

73 entries across 73 versions & 2 rubygems

Version Path
rails-add_ons-3.0.0.pre1 app/extensions/object_extensions.rb
itsf_backend-5.0.0.pre app/extensions/concerns/object_extensions.rb
rails-add_ons-2.2.1 app/extensions/object_extensions.rb
rails-add_ons-2.2.0 app/extensions/object_extensions.rb
rails-add_ons-2.1.1 app/extensions/object_extensions.rb
rails-add_ons-2.1.0 app/extensions/object_extensions.rb
rails-add_ons-2.0.2 app/extensions/object_extensions.rb
rails-add_ons-2.0.1 app/extensions/object_extensions.rb
rails-add_ons-2.0.0 app/extensions/object_extensions.rb
rails-add_ons-1.5.2 app/extensions/object_extensions.rb
rails-add_ons-1.5.1 app/extensions/object_extensions.rb
rails-add_ons-1.5.0 app/extensions/object_extensions.rb
itsf_backend-4.2.3 app/extensions/concerns/object_extensions.rb
itsf_backend-4.2.2 app/extensions/concerns/object_extensions.rb
rails-add_ons-1.4.1 app/extensions/object_extensions.rb
rails-add_ons-1.4.0 app/extensions/object_extensions.rb
rails-add_ons-1.3.3 app/extensions/object_extensions.rb
rails-add_ons-1.3.2 app/extensions/object_extensions.rb
rails-add_ons-1.3.1 app/extensions/object_extensions.rb
rails-add_ons-1.3.0 app/extensions/object_extensions.rb