lib/rubo/brain.rb
# Get a User object given a name.
#
# @param name [String]
# @return [User]
Get a User object given a name.
Get a User object given a name .
def user_for_name(name)
      lower_name = name.downcase
      users.find do |(_, v)|
        user_name = v.name
        if user_name && user_name.downcase == lower_name
          v
        end
      end
    end
def user_for_name ( name ) lower_name = name . downcase users . find do | ( _ , v ) | user_name = v . name if user_name && user_name . downcase == lower_name v end end end
Get a User object given a name.
Get a User object given a name .
None
User
name
<not_specific>
<not_specific>
None