class Aruba::Platforms::UnixEnvironmentVariables

def fetch(name, default = UNDEFINED)

Parameters:
  • default (Object) --
  • name (#to_s) --
def fetch(name, default = UNDEFINED)
  if default == UNDEFINED
    to_h.fetch name.to_s
  else
    to_h.fetch name.to_s, default
  end
end