Files
- grammar.en.rdoc
- test.ja.rdoc
- contributing.rdoc
- contributors.rdoc
- dtrace_probes.rdoc
- extension.ja.rdoc
- extension.rdoc
- globals.rdoc
- keywords.rdoc
- maintainers.rdoc
- marshal.rdoc
- regexp.rdoc
- security.rdoc
- standard_library.rdoc
- syntax.rdoc
- assignment.rdoc
- calling_methods.rdoc
- control_expressions.rdoc
- exceptions.rdoc
- literals.rdoc
- methods.rdoc
- miscellaneous.rdoc
- modules_and_classes.rdoc
- precedence.rdoc
- refinements.rdoc
- README.ja.rdoc
- README.rdoc
Class Index
- ArgumentError
- Array
- BasicObject
- Bignum
- Binding
- Class
- ClosedQueueError
- Comparable
- Complex
- Complex::compatible
- ConditionVariable
- Continuation
- Data
- Dir
- ENV
- EOFError
- Encoding
- Encoding::CompatibilityError
- Encoding::Converter
- Encoding::ConverterNotFoundError
- Encoding::InvalidByteSequenceError
- Encoding::UndefinedConversionError
- EncodingError
- Enumerable
- Enumerator
- Enumerator::Generator
- Enumerator::Lazy
- Enumerator::Yielder
- Errno
- Exception
- FalseClass
- Fiber
- FiberError
- File
- File::Constants
- File::Stat
- FileTest
- Fixnum
- Float
- FloatDomainError
- GC
- GC::Profiler
- Hash
- IO
- IO::EAGAINWaitReadable
- IO::EAGAINWaitWritable
- IO::EINPROGRESSWaitReadable
- IO::EINPROGRESSWaitWritable
- IO::EWOULDBLOCKWaitReadable
- IO::EWOULDBLOCKWaitWritable
- IO::WaitReadable
- IO::WaitWritable
- IOError
- IndexError
- Integer
- Interrupt
- Kernel
- KeyError
- LoadError
- LocalJumpError
- Marshal
- MatchData
- Math
- Math::DomainError
- Method
- Module
- NameError
- NilClass
- NoMemoryError
- NoMethodError
- NotImplementedError
- Numeric
- Object
- ObjectSpace
- ObjectSpace::WeakMap
- Proc
- Process
- Process::GID
- Process::Status
- Process::Sys
- Process::UID
- Process::Waiter
- Queue
- Random
- Random::Formatter
- Range
- RangeError
- Rational
- Rational::compatible
- Regexp
- RegexpError
- RubyVM
- RubyVM::Env
- RubyVM::InstructionSequence
- RuntimeError
- ScriptError
- SecurityError
- Signal
- SignalException
- SizedQueue
- StandardError
- StopIteration
- String
- Struct
- Symbol
- SyntaxError
- SystemCallError
- SystemExit
- SystemStackError
- Thread
- Thread::Backtrace::Location
- Thread::Mutex
- ThreadError
- ThreadGroup
- Time
- TracePoint
- TrueClass
- TypeError
- UnboundMethod
- UncaughtThrowError
- ZeroDivisionError
- fatal
- unknown
Keywords¶ ↑
The following keywords are used by Ruby.
- __ENCODING__
-
The script encoding of the current file. See Encoding.
- __LINE__
-
The line number of this keyword in the current file.
- __FILE__
-
The path to the current file.
- BEGIN
-
Runs before any other code in the current file. See miscellaneous syntax
- END
-
Runs after any other code in the current file. See miscellaneous syntax
- alias
-
Creates an alias between two methods (and other things). See modules and classes syntax
- and
-
Short-circuit Boolean and with lower precedence than
&&
- begin
-
Starts an exception handling block. See exceptions syntax
- break
-
Leaves a block early. See control expressions syntax
- case
-
Starts a
case
expression. See control expressions syntax - class
-
Creates or opens a class. See modules and classes syntax
- def
-
Defines a method. See methods syntax
- defined?
-
Returns a string describing its argument. See miscellaneous syntax
- do
-
Starts a block.
- else
-
The unhandled condition in
case
,if
andunless
expressions. See control expressions syntax - elsif
-
An alternate condition for an
if
expression. See control expressions syntax - end
-
The end of a syntax block. Used by classes, modules, methods, exception handling and control expressions.
- ensure
-
Starts a section of code that is always run when an exception is raised. See exceptions syntax
- false
-
Boolean false. See literals
- for
-
A loop that is similar to using the
each
method. See control expressions syntax - if
-
Used for
if
and modifierif
expressions. See control expressions syntax - in
-
Used to separate the iterable object and iterator variable in a
for
loop. See control expressions syntax - module
-
Creates or opens a module. See modules and classes syntax
- next
-
Skips the rest of the block. See control expressions syntax
- nil
-
A false value usually indicating “no value” or “unknown”. See literals
- not
-
Inverts the following boolean expression. Has a lower precedence than
!
- or
-
Boolean or with lower precedence than
||
- redo
-
Restarts execution in the current block. See control expressions syntax
- rescue
-
Starts an exception section of code in a
begin
block. See exceptions syntax - retry
-
Retries an exception block. See exceptions syntax
- return
-
Exits a method. See methods syntax
- self
-
The object the current method is attached to. See methods syntax
- super
-
Calls the current method in a superclass. See methods syntax
- then
-
Indicates the end of conditional blocks in control structures. See control expressions syntax
- true
-
Boolean true. See literals
- undef
-
Prevents a class or module from responding to a method call. See modules and classes syntax
- unless
-
Used for
unless
and modifierunless
expressions. See control expressions syntax - until
-
Creates a loop that executes until the condition is true. See control expressions syntax
- when
-
A condition in a
case
expression. See control expressions syntax - while
-
Creates a loop that executes while the condition is true. See control expressions syntax
- yield
-
Starts execution of the block sent to the current method. See methods syntax