class Addressable::URI
def normalized_userinfo
-
(String)
- The userinfo component, normalized.
def normalized_userinfo self.userinfo && @normalized_userinfo ||= (begin current_user = self.normalized_user current_password = self.normalized_password if !current_user && !current_password nil elsif current_user && current_password "#{current_user}:#{current_password}" elsif current_user && !current_password "#{current_user}" end end) end