class Addressable::URI

def scheme

Returns:
  • (String) - The scheme component.
def scheme
  return defined?(@scheme) ? @scheme : nil
end