This is the API documentation for Ruby 2.1.2.
Support for the Ruby 2.1 series ended on March 31 2017. See here for details.
New to Ruby? You may find these links helpful: syntax, control expressions, assignment, methods, modules + classes, and operator precedence.
This is the API documentation for Ruby 2.1.2.
::[] (Dir)
::[] (ENV)
::abort_on_exception= (Thread)
::asciicompat_encoding (Encoding::Converter)
::change_privilege (Process::GID)
::change_privilege (Process::UID)
::compile (RubyVM::InstructionSequence)
::compile_file (RubyVM::InstructionSequence)
::compile_option (RubyVM::InstructionSequence)
::compile_option= (RubyVM::InstructionSequence)
::default_external= (Encoding)
::default_internal= (Encoding)
::define_finalizer (ObjectSpace)
::disasm (RubyVM::InstructionSequence)
::disassemble (RubyVM::InstructionSequence)
::garbage_collect (ObjectSpace)
::grant_privilege (Process::GID)
::grant_privilege (Process::UID)
::new (IO)
::new (RubyVM::InstructionSequence)
::of (RubyVM::InstructionSequence)
::re_exchangeable? (Process::GID)
::re_exchangeable? (Process::UID)
::search_convpath (Encoding::Converter)
::sid_available? (Process::GID)
::sid_available? (Process::UID)
::undefine_finalizer (ObjectSpace)
::verify_internal_consistency (GC)
#absolute_path (RubyVM::InstructionSequence)
#absolute_path (Thread::Backtrace::Location)
#backtrace_locations (Exception)
#base_label (RubyVM::InstructionSequence)
#base_label (Thread::Backtrace::Location)
#broadcast (ConditionVariable)
#class_variable_defined? (Module)
#collect_concat (Enumerator::Lazy)
#convert (Encoding::Converter)
#convpath (Encoding::Converter)
#define_singleton_method (Object)
#destination_encoding (Encoding::Converter)
#destination_encoding (Encoding::InvalidByteSequenceError)
#destination_encoding (Encoding::UndefinedConversionError)
#destination_encoding_name (Encoding::InvalidByteSequenceError)
#destination_encoding_name (Encoding::UndefinedConversionError)
#disasm (RubyVM::InstructionSequence)
#disassemble (RubyVM::InstructionSequence)
#drop_while (Enumerator::Lazy)
#each_key (ObjectSpace::WeakMap)
#each_pair (ObjectSpace::WeakMap)
#each_value (ObjectSpace::WeakMap)
#each_with_object (Enumerable)
#each_with_object (Enumerator)
#error_bytes (Encoding::InvalidByteSequenceError)
#error_char (Encoding::UndefinedConversionError)
#eval (RubyVM::InstructionSequence)
#executable_real? (File::Stat)
#finalize (ObjectSpace::WeakMap)
#first_lineno (RubyVM::InstructionSequence)
#include? (ObjectSpace::WeakMap)
#incomplete_input? (Encoding::InvalidByteSequenceError)
#insert_output (Encoding::Converter)
#inspect (Encoding::Converter)
#inspect (ObjectSpace::WeakMap)
#inspect (RubyVM::InstructionSequence)
#inspect (Thread::Backtrace::Location)
#instance_variable_defined? (Object)
#instance_variable_get (Object)
#instance_variable_set (Object)
#label (RubyVM::InstructionSequence)
#label (Thread::Backtrace::Location)
#last_error (Encoding::Converter)
#length (ObjectSpace::WeakMap)
#line_trace_all (RubyVM::InstructionSequence)
#line_trace_specify (RubyVM::InstructionSequence)
#lineno (Thread::Backtrace::Location)
#local_variable_defined? (Binding)
#member? (ObjectSpace::WeakMap)
#original_name (UnboundMethod)
#path (RubyVM::InstructionSequence)
#path (Thread::Backtrace::Location)
#primitive_convert (Encoding::Converter)
#primitive_errinfo (Encoding::Converter)
#private_class_method (Module)
#private_instance_methods (Module)
#private_method_defined? (Module)
#protected_instance_methods (Module)
#protected_method_defined? (Module)
#public_instance_method (Module)
#public_instance_methods (Module)
#public_method_defined? (Module)
#putback (Encoding::Converter)
#raised_exception (TracePoint)
#readagain_bytes (Encoding::InvalidByteSequenceError)
#remove_class_variable (Module)
#remove_instance_variable (Object)
#replacement (Encoding::Converter)
#replacement= (Encoding::Converter)
#singleton_method_added (BasicObject)
#singleton_method_added (Numeric)
#singleton_method_removed (BasicObject)
#singleton_method_undefined (BasicObject)
#slice_before (Enumerator::Lazy)
#source_encoding (Encoding::Converter)
#source_encoding (Encoding::InvalidByteSequenceError)
#source_encoding (Encoding::UndefinedConversionError)
#source_encoding_name (Encoding::InvalidByteSequenceError)
#source_encoding_name (Encoding::UndefinedConversionError)
#source_location (UnboundMethod)
#take_while (Enumerator::Lazy)
#to_a (RubyVM::InstructionSequence)
#to_s (Thread::Backtrace::Location)