class Object

Public Instance Methods

tap() { |self| ... } click to toggle source
# File lib/active_record/connection_adapters/nulldb_adapter.rb, line 11
def tap
  yield self
  self
end
try(*a) { |self| ... } click to toggle source
# File lib/active_record/connection_adapters/nulldb_adapter.rb, line 20
def try(*a, &b)
  if a.empty? && block_given?
    yield self
  else
    __send__(*a, &b)
  end
end