code: def list_(runas=None):
      '''
      List the installable versions of ruby
  
      runas
          The user under which to run rbenv. If not specified, then rbenv will be
          run as the user under which Salt is running.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rbenv.list
      '''
      ret = []
      output = _rbenv_exec(['install', '--list'], runas=runas)
      if output:
          for line in output.splitlines():
              if line == 'Available versions:':
                  continue
              ret.append(line.strip())
      return ref list_(runas=None):
      '''
      List the installable versions of ruby
  
      runas
          The user under which to run rbenv. If not specified, then rbenv will be
          run as the user under which Salt is running.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rbenv.list
      '''
      ret = []
      output = _rbenv_exec(['install', '--list'], runas=runas)
      if output:
          for line in output.splitlines():
              if line == 'Available versions:':
                  continue
              ret.append(line.strip())
      return ret
docs: List the installable versions of ruby
  
      runas
          The user under which to run rbenv. If not specified, then rbenv will be
          run as the user under which Salt is running.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rbenv.list