mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-17 08:30:04 +00:00
update comment
This commit is contained in:
parent
bca86d4c06
commit
66405d0eb9
1 changed files with 3 additions and 4 deletions
|
@ -121,8 +121,7 @@ module MPW
|
||||||
end
|
end
|
||||||
|
|
||||||
# Search in some csv data
|
# Search in some csv data
|
||||||
# @args: search -> the string to search
|
# @args: options -> a hash with paramaters
|
||||||
# protocol -> the connection protocol (ssh, web, other)
|
|
||||||
# @rtrn: a list with the resultat of the search
|
# @rtrn: a list with the resultat of the search
|
||||||
def list(options={})
|
def list(options={})
|
||||||
result = []
|
result = []
|
||||||
|
@ -148,7 +147,7 @@ module MPW
|
||||||
|
|
||||||
# Search in some csv data
|
# Search in some csv data
|
||||||
# @args: id -> the id item
|
# @args: id -> the id item
|
||||||
# @rtrn: a row with the resultat of the search
|
# @rtrn: a row with the result of the search
|
||||||
def search_by_id(id)
|
def search_by_id(id)
|
||||||
@data.each do |item|
|
@data.each do |item|
|
||||||
return item if item.id == id
|
return item if item.id == id
|
||||||
|
|
Loading…
Add table
Reference in a new issue