Top Level Namespace
| Relationships & Source Files | |
| Namespace Children | |
| Modules: | |
| Classes: 
          ARGF,
        Array,
        BasicObject,
        Bignum,
        Binding,
        Class,
        Complex,
        ConditionVariable,
        Continuation,
        Data,
        Dir,
        ENV,
        Encoding,
        Enumerator,
        FalseClass,
        Fiber,
        File,
        Fixnum,
        Float,
        Hash,
        IO,
        Integer,
        MatchData,
        Method,
        Module,
        Mutex,
        NilClass,
        Numeric,
        Object,
        Proc,
        Queue,
        Random,
        Range,
        Rational,
        Regexp,
        RubyVM,
        SizedQueue,
        String,
        Struct,
        Symbol,
        Thread,
        ThreadGroup,
        Time,
        TracePoint,
        TrueClass,
        UnboundMethod       | |
| Exceptions: 
          ArgumentError,
        ClosedQueueError,
        EOFError,
        EncodingError,
        Exception,
        FiberError,
        FloatDomainError,
        IOError,
        IndexError,
        Interrupt,
        KeyError,
        LoadError,
        LocalJumpError,
        NameError,
        NoMemoryError,
        NoMethodError,
        NotImplementedError,
        RangeError,
        RegexpError,
        RuntimeError,
        ScriptError,
        SecurityError,
        SignalException,
        StandardError,
        StopIteration,
        SyntaxError,
        SystemCallError,
        SystemExit,
        SystemStackError,
        ThreadError,
        TypeError,
        UncaughtThrowError,
        ZeroDivisionError,
        fatal       | 
Constant Summary
- 
    ARGV =
    # File 'ruby.c', line 2076ARGVcontains the command line arguments used to run ruby.A library like OptionParser can be used to process command-line arguments. rb_argv
- 
    DATA =
    # File 'ruby.c', line 1876$ cat t.rb puts DATA.gets __END__DATA is a File that contains the data section of the executed file. To create a data section use <tt>__END__</tt> 
- 
    FALSE =
    # File 'object.c', line 3593An alias of falseQfalse
- 
    NIL =
    # File 'object.c', line 3495An alias of nilQnil
- 
    RUBY_COPYRIGHT =
    # File 'version.c', line 73The copyright string for ruby MKSTR(copyright) 
- 
    RUBY_DESCRIPTION =
    # File 'version.c', line 69The full ruby version string, like ruby -vprints'MKSTR(description) 
- 
    RUBY_ENGINE =
    # File 'version.c', line 77The engine or interpreter this ruby uses. ruby_engine_name = MKSTR(engine) 
- 
    RUBY_ENGINE_VERSION =
    # File 'version.c', line 82The version of the engine or interpreter this ruby uses. (1 ? version : MKSTR(version)) 
- 
    RUBY_PATCHLEVEL =
    # File 'version.c', line 61The patchlevel for this ruby. If this is a development build of ruby the patchlevel will be -1 MKINT(patchlevel) 
- 
    RUBY_PLATFORM =
    # File 'version.c', line 56The platform for this ruby MKSTR(platform) 
- 
    RUBY_RELEASE_DATE =
    # File 'version.c', line 52The date this ruby was released MKSTR(release_date) 
- 
    RUBY_REVISION =
    # File 'version.c', line 65The SVN revision for this ruby. MKINT(revision) 
- 
    RUBY_VERSION =
    # File 'version.c', line 48The running version of ruby (version = MKSTR(version)) 
- 
    STDERR =
    # File 'io.c', line 12448Holds the original stderr rb_stderr
- 
    STDIN =
    # File 'io.c', line 12444Holds the original stdin rb_stdin
- 
    STDOUT =
    # File 'io.c', line 12446Holds the original stdout rb_stdout
- 
    TOPLEVEL_BINDING =
    # File 'vm.c', line 2990The Binding of the top level scope rb_binding_new()
- 
    TRUE =
    # File 'object.c', line 3579An alias of trueQtrue
Class Attribute Summary
- $, rw
- 
    
      $-0  
    
    rw
    Alias for $/. 
- $-i(*var) rw
- 
    
      $-K  
    
    rw
    Alias for $KCODE. 
- 
    
      $-v  
    
    rw
    Alias for $VERBOSE. 
- 
    
      $-w  
    
    rw
    Alias for $VERBOSE. 
- $.(*var) rw
- 
    
      $/  
      (also: .$-0)
    
    rw
    avoid modifying RS_default. 
- $0 (also: .$PROGRAM_NAME) rw
- $= rw
- 
    
      $>  
    
    rw
    Alias for $stdout. 
- $@ rw
- $\\ rw
- $_ rw
- $KCODE (also: .$-K) rw
- 
    
      $PROGRAM_NAME  
    
    rw
    Alias for $0. 
- $SAFE rw
- $stderr rw
- $stdout (also: .$>) rw
- 
    
      $VERBOSE  
      (also: .$-v, .$-w)
    
    rw
    ! Defines built-in variables. 
- 
    
      $VERBOSE=  
      (also: .$-v=, .$-w=)
    
    rw
    ! Defines built-in variables. 
- $~ rw
- $! readonly
- 
    
      Process.pid  ⇒ Fixnum 
    
    readonly
    Returns the process id of this process. 
- $& readonly
- $' readonly
- $*(*var) readonly
- $+ readonly
- 
    
      $-d  
    
    readonly
    Alias for $DEBUG. 
- 
    
      $-F  
    
    readonly
    Alias for $;. 
- $-W() readonly
- $; (also: .$-F) readonly
- $< readonly
- $\ (also: .$LOADED_FEATURES) readonly
- $` readonly
- $DEBUG (also: .$-d) readonly
- $FILENAME(*var) readonly
- $find_time_numguess readonly
- 
    
      $LOADED_FEATURES  
    
    readonly
    Alias for $. 
- $stdin readonly
Class Method Summary
- 
    
      $?  ⇒ Boolean 
    
    ::Process::Status encapsulates the information on the status of a running or terminated system process. 
Class Attribute Details
$! (readonly)
Process.pid ⇒ Fixnum (readonly)
$& (readonly)
$' (readonly)
$*(*var) (readonly)
$+ (readonly)
$, (rw)
$-0 (rw)
Alias for $/.
$-d (readonly)
Alias for $DEBUG.
$-F (readonly)
Alias for $;.
$-i(*var) (rw)
$-K (rw)
Alias for $KCODE.
$-v (rw)
Alias for $VERBOSE.
$-W() (readonly)
$-w (rw)
Alias for $VERBOSE.
$.(*var) (rw)
$/ (rw) Also known as: ::$-0
avoid modifying RS_default
$0 (rw) Also known as: ::$PROGRAM_NAME
$; (readonly) Also known as: ::$-F
$< (readonly)
$= (rw)
$> (rw)
Alias for $stdout.
$@ (rw)
$\ (readonly) Also known as: ::$LOADED_FEATURES
$\\ (rw)
$_ (rw)
$` (readonly)
$DEBUG (readonly) Also known as: ::$-d
$FILENAME(*var) (readonly)
$find_time_numguess (readonly)
$KCODE (rw) Also known as: ::$-K
$LOADED_FEATURES (readonly)
Alias for $.
$PROGRAM_NAME (rw)
Alias for $0.
$SAFE (rw)
$stderr (rw)
$stdin (readonly)
$stdout (rw) Also known as: ::$>
$VERBOSE (rw) Also known as: ::$-v, ::$-w
! Defines built-in variables
$VERBOSE= (rw) Also known as: ::$-v=, ::$-w=
! Defines built-in variables
$~ (rw)
Class Method Details
    $?  ⇒ Boolean 
  
::Process::Status encapsulates the information on the status of a running or terminated system process. The built-in variable $? is either nil or a ::Process::Status object.
fork { exit 99 }   #=> 26557
Process.wait       #=> 26557
$?.class           #=> Process::Status
$?.to_i            #=> 25344
$? >> 8            #=> 99
$?.stopped?        #=> false
$?.exited?         #=> true
$?.exitstatus      #=> 99Posix systems record information on processes using a 16-bit integer. The lower bits record the process status (stopped, exited, signaled) and the upper bits possibly contain additional information (for example the program's return code in the case of exited processes). Pre Ruby 1.8, these bits were exposed directly to the Ruby program. Ruby now encapsulates these in a ::Process::Status object. To maximize compatibility, however, these objects retain a bit-oriented interface. In the descriptions that follow, when we talk about the integer value of stat, we're referring to this 16 bit value.