class Airbrake::Rack::User
def try_to_get(key)
def try_to_get(key) return unless @user.respond_to?(key) # try methods with no arguments or with variable number of arguments, # where none of them are required return unless @user.method(key).arity.between?(-1, 0) String(@user.__send__(key)) end