lib/rubo/brain.rb
# Get all users whose names match fuzzy name. Currently,
# match means 'starts with',
# but this could be extended to match initials, nicknames, etc.
#
# @param fuzzy_name [String]
# @return [Array<User>]
Get all users whose names match fuzzy name. Currently,
match means 'starts with',
but this could be extended to match initials, nicknames, etc.
Get all users whose names match fuzzy name . Currently match means ' starts with ' but this could be extended to match initials nicknames etc .
def users_for_raw_fuzzy_name(fuzzy_name)
      lower_fuzzy_name = fuzzy_name.downcase
      users.values.select do |user|
        user.name.downcase.index(lower_name, 0) == 0
      end
    end
def users_for_raw_fuzzy_name ( fuzzy_name ) lower_fuzzy_name = fuzzy_name . downcase users . values . select do | user | user . name . downcase . index ( lower_name , 0 ) == 0 end end
Get all users whose names match fuzzy name.
Get all users whose names match fuzzy name .
None
Array<User>
fuzzy_name
<not_specific>
<not_specific>
None