lib/base_repo.rb
# Find a row in a table. Returns nil if it is not found.
#
# @param table_name [Symbol] the db table name.
# @param wrapper [Class] the class of the object to return.
# @param id [Integer] the id of the row.
# @return [Object, nil] the row wrapped in a new wrapper object.
Find a row in a table. Returns nil if it is not found.
Find a row in a table . Returns nil if it is not found .
def find(table_name, wrapper, id)
    hash = find_hash(table_name, id)
    return nil if hash.nil?
    wrapper.new(hash)
  end
def find ( table_name , wrapper , id ) hash = find_hash ( table_name , id ) return nil if hash . nil? wrapper . new ( hash ) end
Find a row in a table.
Find a row in a table .
the row wrapped in a new wrapper object.
the row wrapped in a new wrapper object .
Object, nil
table_name
the db table name.
the db table name .
wrapper
the class of the object to return.
the class of the object to return .
id
the id of the row.
the id of the row .