class Object
Object is the default root of all Ruby objects. Object inherits from BasicObject which allows creating alternate object hierarchies. Methods on Object are available to all classes unless explicitly overridden.
Object mixes in the Kernel module, making the built-in kernel functions globally accessible. Although the instance methods of Object are defined by the Kernel module, we have chosen to document them here for clarity.
When referencing constants in classes inheriting from Object you do not need to use the full namespace. For example, referencing File inside YourClass will find the top-level File class.
In the descriptions of Object’s methods, the parameter symbol refers to a symbol, which is either a quoted string or a Symbol (such as :name).
What’s Here
First, what’s elsewhere. Class Object:
-
Inherits from class BasicObject.
-
Includes module Kernel.
Here, class Object provides methods for:
Querying
-
!~: Returnstrueifselfdoes not match the given object, otherwisefalse. -
<=>: Returns 0 ifselfand the given objectobjectare the same object, or ifself == object; otherwise returnsnil. -
#===: Implements case equality, effectively the same as calling
==. -
eql?: Implements hash equality, effectively the same as calling==. -
kind_of?(aliased asis_a?): Returns whether given argument is an ancestor of the singleton class ofself. -
instance_of?: Returns whetherselfis an instance of the given class. -
instance_variable_defined?: Returns whether the given instance variable is defined inself. -
method: Returns theMethodobject for the given method inself. -
methods: Returns an array of symbol names of public and protected methods inself. -
nil?: Returnsfalse. (Onlynilrespondstrueto methodnil?.) -
#object_id: Returns an integer corresponding to
selfthat is unique for the current process -
private_methods: Returns an array of the symbol names of the private methods inself. -
protected_methods: Returns an array of the symbol names of the protected methods inself. -
public_method: Returns theMethodobject for the given public method inself. -
public_methods: Returns an array of the symbol names of the public methods inself. -
respond_to?: Returns whetherselfresponds to the given method. -
singleton_class: Returns the singleton class ofself. -
singleton_method: Returns theMethodobject for the given singleton method inself. -
singleton_methods: Returns an array of the symbol names of the singleton methods inself. -
define_singleton_method: Defines a singleton method inselffor the given symbol method-name and block or proc. -
extend: Includes the given modules in the singleton class ofself. -
public_send: Calls the given public method inselfwith the given argument. -
#send: Calls the given method in
selfwith the given argument.
Instance Variables
-
instance_variable_get: Returns the value of the given instance variable inself, ornilif the instance variable is not set. -
instance_variable_set: Sets the value of the given instance variable inselfto the given object. -
instance_variables: Returns an array of the symbol names of the instance variables inself. -
remove_instance_variable: Removes the named instance variable fromself.
Other
-
clone: Returns a shallow copy ofself, including singleton class and frozen state. -
define_singleton_method: Defines a singleton method inselffor the given symbol method-name and block or proc. -
dup: Returns a shallow unfrozen copy ofself. -
enum_for(aliased asto_enum): Returns anEnumeratorforselfusing the using the given method, arguments, and block. -
extend: Includes the given modules in the singleton class ofself. -
freeze: Prevents further modifications toself. -
hash: Returns the integer hash value forself. -
inspect: Returns a human-readable string representation ofself. -
itself: Returnsself. -
method_missing:Methodcalled when an undefined method is called onself. -
public_send: Calls the given public method inselfwith the given argument. -
#send: Calls the given method in
selfwith the given argument. -
to_s: Returns a string representation ofself.
Constants
- ARGF
-
ARGFis a stream designed for use in scripts that process files given as command-line arguments or passed in viaSTDIN.See
ARGF(the class) for more details. - ARGV
-
ARGVcontains the command line arguments used to run ruby.A library like
OptionParsercan be used to process command-line arguments. - BigDecimal::BASE
-
Base value used in internal calculations. On a 32 bit system, BASE is 10000, indicating that calculation is done in groups of 4 digits. (If it were larger, BASE**2 wouldn’t fit in 32 bits, so you couldn’t guarantee that two groups could always be multiplied together without overflow.)
- BigDecimal::EXCEPTION_ALL
-
Determines whether overflow, underflow or zero divide result in an exception being thrown. See
BigDecimal.mode. - BigDecimal::EXCEPTION_INFINITY
-
Determines what happens when the result of a computation is infinity. See
BigDecimal.mode. - BigDecimal::EXCEPTION_NaN
-
Determines what happens when the result of a computation is not a number (NaN). See
BigDecimal.mode. - BigDecimal::EXCEPTION_OVERFLOW
-
Determines what happens when the result of a computation is an overflow (a result too large to be represented). See
BigDecimal.mode. - BigDecimal::EXCEPTION_UNDERFLOW
-
Determines what happens when the result of a computation is an underflow (a result too small to be represented). See
BigDecimal.mode. - BigDecimal::EXCEPTION_ZERODIVIDE
-
Determines what happens when a division by zero is performed. See
BigDecimal.mode. - BigDecimal::INFINITY
-
Special value constants
- BigDecimal::NAN
- BigDecimal::ROUND_CEILING
-
Round towards +Infinity. See
BigDecimal.mode. - BigDecimal::ROUND_DOWN
-
Indicates that values should be rounded towards zero. See
BigDecimal.mode. - BigDecimal::ROUND_FLOOR
-
Round towards -Infinity. See
BigDecimal.mode. - BigDecimal::ROUND_HALF_DOWN
-
Indicates that digits >= 6 should be rounded up, others rounded down. See
BigDecimal.mode. - BigDecimal::ROUND_HALF_EVEN
-
Round towards the even neighbor. See
BigDecimal.mode. - BigDecimal::ROUND_HALF_UP
-
Indicates that digits >= 5 should be rounded up, others rounded down. See
BigDecimal.mode. - BigDecimal::ROUND_MODE
-
Determines what happens when a result must be rounded in order to fit in the appropriate number of significant digits. See
BigDecimal.mode. - BigDecimal::ROUND_UP
-
Indicates that values should be rounded away from zero. See
BigDecimal.mode. - BigDecimal::SIGN_NEGATIVE_FINITE
-
Indicates that a value is negative and finite. See
BigDecimal.sign. - BigDecimal::SIGN_NEGATIVE_INFINITE
-
Indicates that a value is negative and infinite. See
BigDecimal.sign. - BigDecimal::SIGN_NEGATIVE_ZERO
-
Indicates that a value is -0. See
BigDecimal.sign. - BigDecimal::SIGN_NaN
-
Indicates that a value is not a number. See
BigDecimal.sign. - BigDecimal::SIGN_POSITIVE_FINITE
-
Indicates that a value is positive and finite. See
BigDecimal.sign. - BigDecimal::SIGN_POSITIVE_INFINITE
-
Indicates that a value is positive and infinite. See
BigDecimal.sign. - BigDecimal::SIGN_POSITIVE_ZERO
-
Indicates that a value is +0. See
BigDecimal.sign. - BigDecimal::VERSION
-
The version of bigdecimal library
- CROSS_COMPILING
- CSV::DEFAULT_OPTIONS
-
Default values for method options.
- CSV::VERSION
-
The version of the installed library.
- Complex::I
-
Equivalent to
Complex.rect(0, 1):Complex::I # => (0+1i)
- DATA
-
DATAis aFilethat contains the data section of the executed file. To create a data section use__END__:$ cat t.rb puts DATA.gets __END__ hello world! $ ruby t.rb hello world!
- DBM::NEWDB
-
Indicates that dbm_open() should open the database in read/write mode, create it if it does not already exist, and delete all contents if it does already exist.
- DBM::READER
-
Indicates that dbm_open() should open the database in read-only mode
- DBM::VERSION
-
Identifies ndbm library version.
Examples:
-
“ndbm (4.3BSD)”
-
“Berkeley DB 4.8.30: (April 9, 2010)”
-
“Berkeley DB (unknown)” (4.4BSD, maybe)
-
“GDBM version 1.8.3. 10/15/2002 (built Jul 1 2011 12:32:45)”
-
“QDBM 1.8.78”
-
- DBM::WRCREAT
-
Indicates that dbm_open() should open the database in read/write mode, and create it if it does not already exist
- DBM::WRITER
-
Indicates that dbm_open() should open the database in read/write mode
- Date::ABBR_DAYNAMES
-
An array of strings of abbreviated day names in English. The first is “Sun”.
- Date::ABBR_MONTHNAMES
-
An array of strings of abbreviated month names in English. The first element is nil.
- Date::DAYNAMES
-
An array of strings of the full names of days of the week in English. The first is “Sunday”.
- Date::ENGLAND
-
The Julian day number of the day of calendar reform for England and her colonies.
- Date::GREGORIAN
-
The Julian day number of the day of calendar reform for the proleptic Gregorian calendar.
- Date::ITALY
-
The Julian day number of the day of calendar reform for Italy and some catholic countries.
- Date::JULIAN
-
The Julian day number of the day of calendar reform for the proleptic Julian calendar.
- Date::MONTHNAMES
-
An array of strings of full month names in English. The first element is nil.
- Digest::REQUIRE_MUTEX
-
A mutex for Digest().
- ENV
-
ENVis a Hash-like accessor for environment variables.See
ENV(the class) for more details. - Encoding::Converter::AFTER_OUTPUT
-
Stop converting after some output is complete but before all of the input was consumed. See primitive_convert for an example.
- Encoding::Converter::CRLF_NEWLINE_DECORATOR
-
Decorator for converting LF to CRLF
- Encoding::Converter::CR_NEWLINE_DECORATOR
-
Decorator for converting LF to CR
- Encoding::Converter::INVALID_MASK
-
Mask for invalid byte sequences
- Encoding::Converter::INVALID_REPLACE
-
Replace invalid byte sequences
- Encoding::Converter::PARTIAL_INPUT
-
Indicates the source may be part of a larger string. See primitive_convert for an example.
- Encoding::Converter::UNDEF_HEX_CHARREF
-
Replace byte sequences that are undefined in the destination encoding with an XML hexadecimal character reference. This is valid for XML conversion.
- Encoding::Converter::UNDEF_MASK
-
Mask for a valid character in the source encoding but no related character(s) in destination encoding.
- Encoding::Converter::UNDEF_REPLACE
-
Replace byte sequences that are undefined in the destination encoding.
- Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
-
Decorator for converting CRLF and CR to LF
- Encoding::Converter::XML_ATTR_CONTENT_DECORATOR
-
Escape as XML AttValue
- Encoding::Converter::XML_ATTR_QUOTE_DECORATOR
-
Escape as XML AttValue
- Encoding::Converter::XML_TEXT_DECORATOR
-
Escape as XML CharData
- Float::DIG
-
The minimum number of significant decimal digits in a double-precision floating point.
Usually defaults to 15.
- Float::EPSILON
-
The difference between 1 and the smallest double-precision floating point number greater than 1.
Usually defaults to 2.2204460492503131e-16.
- Float::INFINITY
-
An expression representing positive infinity.
- Float::MANT_DIG
-
The number of base digits for the
doubledata type.Usually defaults to 53.
- Float::MAX
-
The largest possible integer in a double-precision floating point number.
Usually defaults to 1.7976931348623157e+308.
- Float::MAX_10_EXP
-
The largest positive exponent in a double-precision floating point where 10 raised to this power minus 1.
Usually defaults to 308.
- Float::MAX_EXP
-
The largest possible exponent value in a double-precision floating point.
Usually defaults to 1024.
- Float::MIN
-
The smallest positive normalized number in a double-precision floating point.
Usually defaults to 2.2250738585072014e-308.
If the platform supports denormalized numbers, there are numbers between zero and
Float::MIN.0.0.next_floatreturns the smallest positive floating point number including denormalized numbers. - Float::MIN_10_EXP
-
The smallest negative exponent in a double-precision floating point where 10 raised to this power minus 1.
Usually defaults to -307.
- Float::MIN_EXP
-
The smallest possible exponent value in a double-precision floating point.
Usually defaults to -1021.
- Float::NAN
-
An expression representing a value which is “not a number”.
- Float::RADIX
-
The base of the floating point, or number of unique digits used to represent the number.
Usually defaults to 2 on most systems, which would represent a base-10 decimal.
- IO::APPEND
- IO::BINARY
- IO::CREAT
- IO::DIRECT
- IO::DSYNC
- IO::EAGAINWaitReadable::Errno
- IO::EAGAINWaitWritable::Errno
- IO::EINPROGRESSWaitReadable::Errno
- IO::EINPROGRESSWaitWritable::Errno
- IO::EXCL
- IO::FNM_CASEFOLD
- IO::FNM_DOTMATCH
- IO::FNM_EXTGLOB
- IO::FNM_NOESCAPE
- IO::FNM_PATHNAME
- IO::FNM_SHORTNAME
- IO::FNM_SYSCASE
- IO::LOCK_EX
- IO::LOCK_NB
- IO::LOCK_SH
- IO::LOCK_UN
- IO::NOATIME
- IO::NOCTTY
- IO::NOFOLLOW
- IO::NONBLOCK
- IO::NULL
- IO::PRIORITY
-
Priority event mask for
IO#wait. - IO::RDONLY
- IO::RDWR
- IO::READABLE
-
Readable event mask for
IO#wait. - IO::RSYNC
- IO::SEEK_CUR
-
SetI/O position from the current position - IO::SEEK_DATA
-
SetI/O position to the next location containing data - IO::SEEK_END
-
SetI/O position from the end - IO::SEEK_HOLE
-
SetI/O position to the next hole - IO::SEEK_SET
-
SetI/O position from the beginning - IO::SHARE_DELETE
- IO::SYNC
- IO::TMPFILE
- IO::TRUNC
- IO::WRITABLE
-
Writable event mask for
IO#wait. - IO::WRONLY
- IPAddr::IN4MASK
-
32 bit mask for IPv4
- IPAddr::IN6FORMAT
-
Format string for IPv6
- IPAddr::IN6MASK
-
128 bit mask for IPv6
- IPAddr::RE_IPV4ADDRLIKE
-
Regexpinternally used for parsing IPv4 address. - IPAddr::RE_IPV6ADDRLIKE_COMPRESSED
-
Regexpinternally used for parsing IPv6 address. - IPAddr::RE_IPV6ADDRLIKE_FULL
-
Regexpinternally used for parsing IPv6 address. - JSON::FAST_STATE_PROTOTYPE
- JSON::Infinity
- JSON::JSON_LOADED
- JSON::MinusInfinity
- JSON::NaN
- JSON::PRETTY_STATE_PROTOTYPE
- JSON::SAFE_STATE_PROTOTYPE
- JSON::VERSION
- JSON::VERSION_ARRAY
- JSON::VERSION_BUILD
- JSON::VERSION_MAJOR
- JSON::VERSION_MINOR
- Logger::Formatter::Format
- Logger::ProgName
- Logger::SEV_LABEL
-
Severity label for logging (max 5 chars).
- Logger::VERSION
- Mutex_m::VERSION
- NKF::ASCII
- NKF::AUTO
- NKF::BINARY
- NKF::EUC
- NKF::JIS
- NKF::NKF_RELEASE_DATE
-
Release date of nkf
- NKF::NKF_VERSION
-
Version of nkf
- NKF::NOCONV
- NKF::SJIS
- NKF::UNKNOWN
- NKF::UTF16
- NKF::UTF32
- NKF::UTF8
- NKF::VERSION
-
Full version string of nkf
- OptionParser::Acceptables::DecimalInteger
- OptionParser::Acceptables::DecimalNumeric
- OptionParser::Acceptables::OctalInteger
- OptionParser::AmbiguousArgument::Reason
- OptionParser::AmbiguousOption::Reason
- OptionParser::ArgumentStyle
- OptionParser::COMPSYS_HEADER
- OptionParser::DecimalInteger
-
Decimal integer format, to be converted to
Integer. - OptionParser::DecimalNumeric
-
Decimal integer/float number format, to be converted to
Integerfor integer format,Floatfor float format. - OptionParser::DefaultList
- OptionParser::InvalidArgument::Reason
- OptionParser::InvalidOption::Reason
- OptionParser::MissingArgument::Reason
- OptionParser::NO_ARGUMENT
- OptionParser::NeedlessArgument::Reason
- OptionParser::NoArgument
- OptionParser::OPTIONAL_ARGUMENT
- OptionParser::OctalInteger
-
Ruby/C like octal/hexadecimal/binary integer format, to be converted to
Integer. - OptionParser::Officious
- OptionParser::OptionalArgument
- OptionParser::ParseError::Reason
-
Reason which caused the error.
- OptionParser::REQUIRED_ARGUMENT
- OptionParser::RequiredArgument
- OptionParser::SPLAT_PROC
- OptionParser::Version
-
An alias for compatibility
- PM_ERROR_LEVEL_ARGUMENT
- PM_ERROR_LEVEL_LOAD
- PM_ERROR_LEVEL_SYNTAX
- PM_WARNING_LEVEL_DEFAULT
- PM_WARNING_LEVEL_VERBOSE
- Process::CLOCK_BOOTTIME
- Process::CLOCK_BOOTTIME_ALARM
- Process::CLOCK_MONOTONIC
- Process::CLOCK_MONOTONIC_COARSE
- Process::CLOCK_MONOTONIC_RAW
- Process::CLOCK_PROCESS_CPUTIME_ID
- Process::CLOCK_REALTIME
- Process::CLOCK_REALTIME_ALARM
- Process::CLOCK_REALTIME_COARSE
- Process::CLOCK_THREAD_CPUTIME_ID
- Process::PRIO_PGRP
- Process::PRIO_PROCESS
- Process::PRIO_USER
- Process::RLIMIT_AS
-
Maximum size of the process’s virtual memory (address space) in bytes.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_CORE
-
Maximum size of the core file.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_CPU
-
CPU time limit in seconds.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_DATA
-
Maximum size of the process’s data segment.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_FSIZE
-
Maximum size of files that the process may create.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_MEMLOCK
-
Maximum number of bytes of memory that may be locked into RAM.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_MSGQUEUE
-
Specifies the limit on the number of bytes that can be allocated for POSIX message queues for the real user ID of the calling process.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_NICE
-
Specifies a ceiling to which the process’s nice value can be raised.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_NOFILE
-
Specifies a value one greater than the maximum file descriptor number that can be opened by this process.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_NPROC
-
The maximum number of processes that can be created for the real user ID of the calling process.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_NPTS
-
The maximum number of pseudo-terminals that can be created for the real user ID of the calling process.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_RSS
-
Specifies the limit (in pages) of the process’s resident set.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_RTPRIO
-
Specifies a ceiling on the real-time priority that may be set for this process.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_RTTIME
-
Specifies limit on CPU time this process scheduled under a real-time scheduling policy can consume.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_SIGPENDING
-
Specifies a limit on the number of signals that may be queued for the real user ID of the calling process.
see the system getrlimit(2) manual for details.
- Process::RLIMIT_STACK
-
Maximum size of the stack, in bytes.
see the system getrlimit(2) manual for details.
- Process::RLIM_INFINITY
- Process::RLIM_SAVED_CUR
- Process::RLIM_SAVED_MAX
- Process::WNOHANG
-
see
Process.wait - Process::WUNTRACED
-
see
Process.wait - RUBY_COPYRIGHT
-
The copyright string for ruby
- RUBY_DESCRIPTION
-
The full ruby version string, like
ruby -vprints - RUBY_ENGINE
-
The engine or interpreter this ruby uses.
- RUBY_ENGINE_VERSION
-
The version of the engine or interpreter this ruby uses.
- RUBY_PATCHLEVEL
-
The patchlevel for this ruby. If this is a development build of ruby the patchlevel will be -1
- RUBY_PLATFORM
-
The platform for this ruby
- RUBY_RELEASE_DATE
-
The date this ruby was released
- RUBY_REVISION
-
The GIT commit hash for this ruby.
- RUBY_VERSION
-
The running version of ruby
- Resolv::AddressRegex
-
Address
Regexpto use for matching IP addresses. - Resolv::DNS::Config::InitialTimeout
- Resolv::DNS::OpCode::IQuery
- Resolv::DNS::OpCode::Notify
- Resolv::DNS::OpCode::Query
- Resolv::DNS::OpCode::Status
- Resolv::DNS::OpCode::Update
- Resolv::DNS::Port
-
Default DNS Port
- Resolv::DNS::RCode::BADALG
- Resolv::DNS::RCode::BADKEY
- Resolv::DNS::RCode::BADMODE
- Resolv::DNS::RCode::BADNAME
- Resolv::DNS::RCode::BADSIG
- Resolv::DNS::RCode::BADTIME
- Resolv::DNS::RCode::BADVERS
- Resolv::DNS::RCode::FormErr
- Resolv::DNS::RCode::NXDomain
- Resolv::DNS::RCode::NXRRSet
- Resolv::DNS::RCode::NoError
- Resolv::DNS::RCode::NotAuth
- Resolv::DNS::RCode::NotImp
- Resolv::DNS::RCode::NotZone
- Resolv::DNS::RCode::Refused
- Resolv::DNS::RCode::ServFail
- Resolv::DNS::RCode::YXDomain
- Resolv::DNS::RCode::YXRRSet
- Resolv::DNS::RequestID
- Resolv::DNS::RequestIDMutex
- Resolv::DNS::Resource::ANY::TypeValue
- Resolv::DNS::Resource::CNAME::TypeValue
- Resolv::DNS::Resource::ClassHash
- Resolv::DNS::Resource::ClassInsensitiveTypes
- Resolv::DNS::Resource::ClassValue
- Resolv::DNS::Resource::HINFO::TypeValue
- Resolv::DNS::Resource::IN::A::ClassValue
- Resolv::DNS::Resource::IN::A::TypeValue
- Resolv::DNS::Resource::IN::AAAA::ClassValue
- Resolv::DNS::Resource::IN::AAAA::TypeValue
- Resolv::DNS::Resource::IN::ANY::ClassValue
- Resolv::DNS::Resource::IN::ANY::TypeValue
- Resolv::DNS::Resource::IN::CNAME::ClassValue
- Resolv::DNS::Resource::IN::CNAME::TypeValue
- Resolv::DNS::Resource::IN::ClassValue
- Resolv::DNS::Resource::IN::HINFO::ClassValue
- Resolv::DNS::Resource::IN::HINFO::TypeValue
- Resolv::DNS::Resource::IN::LOC::ClassValue
- Resolv::DNS::Resource::IN::LOC::TypeValue
- Resolv::DNS::Resource::IN::MINFO::ClassValue
- Resolv::DNS::Resource::IN::MINFO::TypeValue
- Resolv::DNS::Resource::IN::MX::ClassValue
- Resolv::DNS::Resource::IN::MX::TypeValue
- Resolv::DNS::Resource::IN::NS::ClassValue
- Resolv::DNS::Resource::IN::NS::TypeValue
- Resolv::DNS::Resource::IN::PTR::ClassValue
- Resolv::DNS::Resource::IN::PTR::TypeValue
- Resolv::DNS::Resource::IN::SOA::ClassValue
- Resolv::DNS::Resource::IN::SOA::TypeValue
- Resolv::DNS::Resource::IN::SRV::ClassValue
- Resolv::DNS::Resource::IN::SRV::TypeValue
- Resolv::DNS::Resource::IN::TXT::ClassValue
- Resolv::DNS::Resource::IN::TXT::TypeValue
- Resolv::DNS::Resource::IN::WKS::ClassValue
- Resolv::DNS::Resource::IN::WKS::TypeValue
- Resolv::DNS::Resource::LOC::TypeValue
- Resolv::DNS::Resource::MINFO::TypeValue
- Resolv::DNS::Resource::MX::TypeValue
- Resolv::DNS::Resource::NS::TypeValue
- Resolv::DNS::Resource::PTR::TypeValue
- Resolv::DNS::Resource::SOA::TypeValue
- Resolv::DNS::Resource::TXT::TypeValue
- Resolv::DNS::UDPSize
-
Default DNS UDP packet size
- Resolv::DefaultResolver
-
Default resolver to use for
Resolvclass methods. - Resolv::Hosts::DefaultFileName
-
The default file name for host names
- Resolv::IPv4::Regex
-
Regular expression IPv4 addresses must match.
- Resolv::IPv4::Regex256
-
Regular expression IPv4 addresses must match.
- Resolv::IPv6::Regex
-
A composite IPv6 address
Regexp. - Resolv::IPv6::Regex_6Hex4Dec
-
IPv4 mapped IPv6 address format a:b:c:d:e:f:w.x.y.z
- Resolv::IPv6::Regex_8Hex
-
IPv6 address format a:b:c:d:e:f:g:h
- Resolv::IPv6::Regex_8HexLinkLocal
-
IPv6 link local address format fe80:b:c:d:e:f:g:h%em1
- Resolv::IPv6::Regex_CompressedHex
-
Compressed IPv6 address format a::b
- Resolv::IPv6::Regex_CompressedHex4Dec
-
Compressed IPv4 mapped IPv6 address format a::b:w.x.y.z
- Resolv::IPv6::Regex_CompressedHexLinkLocal
-
Compressed IPv6 link local address format fe80::b%em1
- Resolv::LOC::Alt::Regex
-
Regular expression LOC Alt must match.
- Resolv::LOC::Coord::Regex
-
Regular expression LOC Coord must match.
- Resolv::LOC::Size::Regex
-
Regular expression LOC size must match.
- Resolv::MDNS::AddressV4
-
Default IPv4 mDNS address
- Resolv::MDNS::AddressV6
-
Default IPv6 mDNS address
- Resolv::MDNS::Addresses
-
Default mDNS addresses
- Resolv::MDNS::Port
-
Default mDNS Port
- Ripper
-
This writes the prism ripper translation into the
Ripperconstant so that users can transparently useRipperwithout any changes. - RubyVM::DEFAULT_PARAMS
-
::RubyVM::DEFAULT_PARAMS This constant exposes the VM’s default parameters. Note that changing these values does not affect VM execution. Specification is not stable and you should not depend on this value. Of course, this constant is MRI specific.
- RubyVM::INSTRUCTION_NAMES
-
::RubyVM::INSTRUCTION_NAMES A list of bytecode instruction names in MRI. This constant is MRI specific.
- RubyVM::OPTS
-
::RubyVM::OPTS An
Arrayof VM build options. This constant is MRI specific. - STDERR
-
Holds the original stderr
- STDIN
-
Holds the original stdin
- STDOUT
-
Holds the original stdout
- Singleton::VERSION
-
The version string
- Socket::AF_ALG
-
Interface to kernel crypto API
- Socket::AF_APPLETALK
-
AppleTalk protocol
- Socket::AF_ATM
-
Asynchronous Transfer Mode
- Socket::AF_AX25
-
AX.25 protocol
- Socket::AF_BLUETOOTH
-
Bluetooth low-level socket protocol
- Socket::AF_CAN
-
Controller Area Network automotive bus protocol
- Socket::AF_CCITT
-
CCITT (now ITU-T) protocols
- Socket::AF_CHAOS
-
MIT CHAOS protocols
- Socket::AF_CNT
-
Computer Network Technology
- Socket::AF_COIP
-
Connection-oriented IP
- Socket::AF_DATAKIT
-
Datakit protocol
- Socket::AF_DEC
-
DECnet protocol
- Socket::AF_DECnet
-
DECnet protocol
- Socket::AF_DLI
-
DEC Direct
DataLink Interface protocol - Socket::AF_E164
-
CCITT (ITU-T) E.164 recommendation
- Socket::AF_ECMA
-
European Computer Manufacturers protocols
- Socket::AF_HYLINK
-
NSC Hyperchannel protocol
- Socket::AF_IB
-
InfiniBand native addressing
- Socket::AF_IMPLINK
-
ARPANET IMP protocol
- Socket::AF_INET
-
IPv4 protocol
- Socket::AF_INET6
-
IPv6 protocol family
- Socket::AF_IPX
-
IPX protocol
- Socket::AF_ISDN
-
Integrated Services Digital Network
- Socket::AF_ISO
-
ISO Open Systems Interconnection protocols
- Socket::AF_KCM
-
KCM (kernel connection multiplexor) interface
- Socket::AF_KEY
-
Key management protocol, originally developed for usage with IPsec
- Socket::AF_LAT
-
Local Area Transport protocol
- Socket::AF_LINK
-
Link layer interface
- Socket::AF_LLC
-
Logical link control (IEEE 802.2 LLC) protocol
- Socket::AF_LOCAL
-
Host-internal protocols
- Socket::AF_MAX
-
Maximum address family for this platform
- Socket::AF_MPLS
-
Multiprotocol Label Switching
- Socket::AF_NATM
-
Native ATM access
- Socket::AF_NDRV
-
Network driver raw access
- Socket::AF_NETBIOS
-
NetBIOS
- Socket::AF_NETGRAPH
-
Netgraph sockets
- Socket::AF_NETLINK
-
Kerneluser interface device - Socket::AF_NS
-
XEROX NS protocols
- Socket::AF_OSI
-
ISO Open Systems Interconnection protocols
- Socket::AF_PACKET
-
Direct link-layer access
- Socket::AF_PPP
-
Point-to-Point Protocol
- Socket::AF_PPPOX
-
Generic PPP transport layer, for setting up L2 tunnels (L2TP and PPPoE)
- Socket::AF_PUP
-
PARC Universal Packet protocol
- Socket::AF_RDS
-
Reliable Datagram Sockets (RDS) protocol
- Socket::AF_ROUTE
-
Internal routing protocol
- Socket::AF_SIP
-
Simple Internet Protocol
- Socket::AF_SNA
-
IBM SNA protocol
- Socket::AF_SYSTEM
- Socket::AF_TIPC
-
TIPC, “cluster domain sockets” protocol
- Socket::AF_UNIX
-
UNIX sockets
- Socket::AF_UNSPEC
-
Unspecified protocol, any supported address family
- Socket::AF_VSOCK
-
VSOCK (originally “VMWare VSockets”) protocol for hypervisor-guest communication
- Socket::AF_XDP
-
XDP (express data path) interface
- Socket::AI_ADDRCONFIG
-
Accept only if any address is assigned
- Socket::AI_ALL
-
Allow all addresses
- Socket::AI_CANONNAME
-
Fill in the canonical name
- Socket::AI_DEFAULT
-
Default flags for getaddrinfo
- Socket::AI_MASK
-
Valid flag mask for getaddrinfo (not for application use)
- Socket::AI_NUMERICHOST
-
Prevent host name resolution
- Socket::AI_NUMERICSERV
-
Prevent service name resolution
- Socket::AI_PASSIVE
-
Get address to use with bind()
- Socket::AI_V4MAPPED
-
Accept IPv4-mapped IPv6 addresses
- Socket::AI_V4MAPPED_CFG
-
Accept IPv4 mapped addresses if the kernel supports it
- Socket::EAI_ADDRFAMILY
-
Address family for hostname not supported
- Socket::EAI_AGAIN
-
Temporary failure in name resolution
- Socket::EAI_BADFLAGS
-
Invalid flags
- Socket::EAI_BADHINTS
-
Invalid value for hints
- Socket::EAI_FAIL
-
Non-recoverable failure in name resolution
- Socket::EAI_FAMILY
-
Address family not supported
- Socket::EAI_MAX
-
Maximum error code from getaddrinfo
- Socket::EAI_MEMORY
-
Memory allocation failure
- Socket::EAI_NODATA
-
No address associated with hostname
- Socket::EAI_NONAME
-
Hostname nor servname, or not known
- Socket::EAI_OVERFLOW
-
Argument buffer overflow
- Socket::EAI_PROTOCOL
-
Resolved protocol is unknown
- Socket::EAI_SERVICE
-
Servname not supported for socket type
- Socket::EAI_SOCKTYPE
-
Sockettype not supported - Socket::EAI_SYSTEM
-
System error returned in errno
- Socket::IFF_802_1Q_VLAN
-
802.1Q VLAN device
- Socket::IFF_ALLMULTI
-
receive all multicast packets
- Socket::IFF_ALTPHYS
-
use alternate physical connection
- Socket::IFF_AUTOMEDIA
-
auto media select active
- Socket::IFF_BONDING
-
bonding master or slave
- Socket::IFF_BRIDGE_PORT
-
device used as bridge port
- Socket::IFF_BROADCAST
-
broadcast address valid
- Socket::IFF_CANTCHANGE
-
flags not changeable
- Socket::IFF_CANTCONFIG
-
unconfigurable using ioctl(2)
- Socket::IFF_DEBUG
-
turn on debugging
- Socket::IFF_DISABLE_NETPOLL
-
disable netpoll at run-time
- Socket::IFF_DONT_BRIDGE
-
disallow bridging this ether dev
- Socket::IFF_DORMANT
-
driver signals dormant
- Socket::IFF_DRV_OACTIVE
-
tx hardware queue is full
- Socket::IFF_DRV_RUNNING
-
resources allocated
- Socket::IFF_DYING
-
interface is winding down
- Socket::IFF_DYNAMIC
-
dialup device with changing addresses
- Socket::IFF_EBRIDGE
-
ethernet bridging device
- Socket::IFF_ECHO
-
echo sent packets
- Socket::IFF_ISATAP
-
ISATAP interface (RFC4214)
- Socket::IFF_LINK0
-
per link layer defined bit 0
- Socket::IFF_LINK1
-
per link layer defined bit 1
- Socket::IFF_LINK2
-
per link layer defined bit 2
- Socket::IFF_LIVE_ADDR_CHANGE
-
hardware address change when it’s running
- Socket::IFF_LOOPBACK
-
loopback net
- Socket::IFF_LOWER_UP
-
driver signals L1 up
- Socket::IFF_MACVLAN_PORT
-
device used as macvlan port
- Socket::IFF_MASTER
-
master of a load balancer
- Socket::IFF_MASTER_8023AD
-
bonding master, 802.3ad.
- Socket::IFF_MASTER_ALB
-
bonding master, balance-alb.
- Socket::IFF_MASTER_ARPMON
-
bonding master, ARP mon in use
- Socket::IFF_MONITOR
-
user-requested monitor mode
- Socket::IFF_MULTICAST
-
supports multicast
- Socket::IFF_NOARP
-
no address resolution protocol
- Socket::IFF_NOTRAILERS
-
avoid use of trailers
- Socket::IFF_OACTIVE
-
transmission in progress
- Socket::IFF_OVS_DATAPATH
-
device used as Open vSwitch datapath port
- Socket::IFF_POINTOPOINT
-
point-to-point link
- Socket::IFF_PORTSEL
-
can set media type
- Socket::IFF_PPROMISC
-
user-requested promisc mode
- Socket::IFF_PROMISC
-
receive all packets
- Socket::IFF_RENAMING
-
interface is being renamed
- Socket::IFF_ROUTE
-
routing entry installed
- Socket::IFF_RUNNING
-
resources allocated
- Socket::IFF_SIMPLEX
-
can’t hear own transmissions
- Socket::IFF_SLAVE
-
slave of a load balancer
- Socket::IFF_SLAVE_INACTIVE
-
bonding slave not the curr. active
- Socket::IFF_SLAVE_NEEDARP
-
need ARPs for validation
- Socket::IFF_SMART
-
interface manages own routes
- Socket::IFF_STATICARP
-
static ARP
- Socket::IFF_SUPP_NOFCS
-
sending custom FCS
- Socket::IFF_TEAM_PORT
-
used as team port
- Socket::IFF_TX_SKB_SHARING
-
sharing skbs on transmit
- Socket::IFF_UNICAST_FLT
-
unicast filtering
- Socket::IFF_UP
-
interface is up
- Socket::IFF_VOLATILE
-
volatile flags
- Socket::IFF_WAN_HDLC
-
WAN HDLC device
- Socket::IFF_XMIT_DST_RELEASE
-
dev_hard_start_xmit() is allowed to release skb->dst
- Socket::IFNAMSIZ
-
Maximum interface name size
- Socket::IF_NAMESIZE
-
Maximum interface name size
- Socket::INADDR_ALLHOSTS_GROUP
-
Multicast group for all systems on this subset
- Socket::INADDR_ANY
-
A socket bound to INADDR_ANY receives packets from all interfaces and sends from the default IP address
- Socket::INADDR_BROADCAST
-
The network broadcast address
- Socket::INADDR_LOOPBACK
-
The loopback address
- Socket::INADDR_MAX_LOCAL_GROUP
-
The last local network multicast group
- Socket::INADDR_NONE
-
A bitmask for matching no valid IP address
- Socket::INADDR_UNSPEC_GROUP
-
The reserved multicast group
- Socket::INET6_ADDRSTRLEN
-
Maximum length of an IPv6 address string
- Socket::INET_ADDRSTRLEN
-
Maximum length of an IPv4 address string
- Socket::IPPORT_RESERVED
-
Default minimum address for bind or connect
- Socket::IPPORT_USERRESERVED
-
Default maximum address for bind or connect
- Socket::IPPROTO_AH
-
IP6 auth header
- Socket::IPPROTO_BIP
- Socket::IPPROTO_DSTOPTS
-
IP6 destination option
- Socket::IPPROTO_EGP
-
Exterior Gateway Protocol
- Socket::IPPROTO_EON
-
ISO cnlp
- Socket::IPPROTO_ESP
-
IP6 Encapsulated Security Payload
- Socket::IPPROTO_FRAGMENT
-
IP6 fragmentation header
- Socket::IPPROTO_GGP
-
Gateway to Gateway Protocol
- Socket::IPPROTO_HELLO
-
“hello” routing protocol
- Socket::IPPROTO_HOPOPTS
-
IP6 hop-by-hop options
- Socket::IPPROTO_ICMP
-
Control message protocol
- Socket::IPPROTO_ICMPV6
-
ICMP6
- Socket::IPPROTO_IDP
-
XNS IDP
- Socket::IPPROTO_IGMP
-
Group Management Protocol
- Socket::IPPROTO_IP
-
Dummy protocol for IP
- Socket::IPPROTO_IPV6
-
IP6 header
- Socket::IPPROTO_MAX
-
Maximum IPPROTO constant
- Socket::IPPROTO_ND
-
Sun net disk protocol
- Socket::IPPROTO_NONE
-
IP6 no next header
- Socket::IPPROTO_PUP
-
PARC Universal Packet protocol
- Socket::IPPROTO_RAW
-
Raw IP packet
- Socket::IPPROTO_ROUTING
-
IP6 routing header
- Socket::IPPROTO_TCP
-
TCP
- Socket::IPPROTO_TP
-
ISO transport protocol class 4
- Socket::IPPROTO_UDP
-
UDP
- Socket::IPPROTO_XTP
-
Xpress Transport Protocol
- Socket::IPV6_CHECKSUM
-
Checksum offset for raw sockets
- Socket::IPV6_DONTFRAG
-
Don’t fragment packets
- Socket::IPV6_DSTOPTS
-
Destination option
- Socket::IPV6_HOPLIMIT
-
Hop limit
- Socket::IPV6_HOPOPTS
-
Hop-by-hop option
- Socket::IPV6_JOIN_GROUP
-
Join a group membership
- Socket::IPV6_LEAVE_GROUP
-
Leave a group membership
- Socket::IPV6_MULTICAST_HOPS
-
IP6 multicast hops
- Socket::IPV6_MULTICAST_IF
-
IP6 multicast interface
- Socket::IPV6_MULTICAST_LOOP
-
IP6 multicast loopback
- Socket::IPV6_NEXTHOP
-
Next hop address
- Socket::IPV6_PATHMTU
-
Retrieve current path MTU
- Socket::IPV6_PKTINFO
-
Receive packet information with datagram
- Socket::IPV6_RECVDSTOPTS
-
Receive all IP6 options for response
- Socket::IPV6_RECVHOPLIMIT
-
Receive hop limit with datagram
- Socket::IPV6_RECVHOPOPTS
-
Receive hop-by-hop options
- Socket::IPV6_RECVPATHMTU
-
Receive current path MTU with datagram
- Socket::IPV6_RECVPKTINFO
-
Receive destination IP address and incoming interface
- Socket::IPV6_RECVRTHDR
-
Receive routing header
- Socket::IPV6_RECVTCLASS
-
Receive traffic class
- Socket::IPV6_RTHDR
-
Allows removal of sticky routing headers
- Socket::IPV6_RTHDRDSTOPTS
-
Allows removal of sticky destination options header
- Socket::IPV6_RTHDR_TYPE_0
-
Routing header type 0
- Socket::IPV6_TCLASS
-
Specify the traffic class
- Socket::IPV6_UNICAST_HOPS
-
IP6 unicast hops
- Socket::IPV6_USE_MIN_MTU
-
Use the minimum MTU size
- Socket::IPV6_V6ONLY
-
Only bind IPv6 with a wildcard bind
- Socket::IPX_TYPE
- Socket::IP_ADD_MEMBERSHIP
-
Add a multicast group membership
- Socket::IP_ADD_SOURCE_MEMBERSHIP
-
Add a multicast group membership
- Socket::IP_BLOCK_SOURCE
-
Block IPv4 multicast packets with a give source address
- Socket::IP_DEFAULT_MULTICAST_LOOP
-
Default multicast loopback
- Socket::IP_DEFAULT_MULTICAST_TTL
-
Default multicast TTL
- Socket::IP_DONTFRAG
-
Don’t fragment packets
- Socket::IP_DROP_MEMBERSHIP
-
Drop a multicast group membership
- Socket::IP_DROP_SOURCE_MEMBERSHIP
-
Drop a multicast group membership
- Socket::IP_FREEBIND
-
Allow binding to nonexistent IP addresses
- Socket::IP_HDRINCL
-
Header is included with data
- Socket::IP_IPSEC_POLICY
-
IPsec security policy
- Socket::IP_MAX_MEMBERSHIPS
-
Maximum number multicast groups a socket can join
- Socket::IP_MINTTL
-
Minimum TTL allowed for received packets
- Socket::IP_MSFILTER
-
Multicast source filtering
- Socket::IP_MTU
-
The Maximum Transmission Unit of the socket
- Socket::IP_MTU_DISCOVER
-
Path MTU discovery
- Socket::IP_MULTICAST_IF
-
IP multicast interface
- Socket::IP_MULTICAST_LOOP
-
IP multicast loopback
- Socket::IP_MULTICAST_TTL
-
IP multicast TTL
- Socket::IP_ONESBCAST
-
Force outgoing broadcast datagrams to have the undirected broadcast address
- Socket::IP_OPTIONS
-
IP options to be included in packets
- Socket::IP_PASSSEC
-
Retrieve security context with datagram
- Socket::IP_PKTINFO
-
Receive packet information with datagrams
- Socket::IP_PKTOPTIONS
-
Receive packet options with datagrams
- Socket::IP_PMTUDISC_DO
-
Always send DF frames
- Socket::IP_PMTUDISC_DONT
-
Never send DF frames
- Socket::IP_PMTUDISC_WANT
-
Use per-route hints
- Socket::IP_PORTRANGE
-
Setthe port range for sockets with unspecified port numbers - Socket::IP_RECVDSTADDR
-
Receive IP destination address with datagram
- Socket::IP_RECVERR
-
Enable extended reliable error message passing
- Socket::IP_RECVIF
-
Receive interface information with datagrams
- Socket::IP_RECVOPTS
-
Receive all IP options with datagram
- Socket::IP_RECVRETOPTS
-
Receive all IP options for response
- Socket::IP_RECVSLLA
-
Receive link-layer address with datagrams
- Socket::IP_RECVTOS
-
Receive TOS with incoming packets
- Socket::IP_RECVTTL
-
Receive IP TTL with datagrams
- Socket::IP_RETOPTS
-
IP options to be included in datagrams
- Socket::IP_ROUTER_ALERT
-
Notify transit routers to more closely examine the contents of an IP packet
- Socket::IP_SENDSRCADDR
-
Source address for outgoing UDP datagrams
- Socket::IP_TOS
-
IP type-of-service
- Socket::IP_TRANSPARENT
-
Transparent proxy
- Socket::IP_TTL
-
IP time-to-live
- Socket::IP_UNBLOCK_SOURCE
-
Unblock IPv4 multicast packets with a give source address
- Socket::IP_XFRM_POLICY
- Socket::LOCAL_CONNWAIT
-
Connect blocks until accepted
- Socket::LOCAL_CREDS
-
Pass credentials to receiver
- Socket::LOCAL_PEERCRED
-
Retrieve peer credentials
- Socket::MCAST_BLOCK_SOURCE
-
Block multicast packets from this source
- Socket::MCAST_EXCLUDE
-
Exclusive multicast source filter
- Socket::MCAST_INCLUDE
-
Inclusive multicast source filter
- Socket::MCAST_JOIN_GROUP
-
Join a multicast group
- Socket::MCAST_JOIN_SOURCE_GROUP
-
Join a multicast source group
- Socket::MCAST_LEAVE_GROUP
-
Leave a multicast group
- Socket::MCAST_LEAVE_SOURCE_GROUP
-
Leave a multicast source group
- Socket::MCAST_MSFILTER
-
Multicast source filtering
- Socket::MCAST_UNBLOCK_SOURCE
-
Unblock multicast packets from this source
- Socket::MSG_COMPAT
-
End of record
- Socket::MSG_CONFIRM
-
Confirm path validity
- Socket::MSG_CTRUNC
-
Control data lost before delivery
- Socket::MSG_DONTROUTE
-
Send without using the routing tables
- Socket::MSG_DONTWAIT
-
This message should be non-blocking
- Socket::MSG_EOF
-
Datacompletes connection - Socket::MSG_EOR
-
Datacompletes record - Socket::MSG_ERRQUEUE
-
Fetch message from error queue
- Socket::MSG_FASTOPEN
-
Reduce step of the handshake process
- Socket::MSG_FIN
- Socket::MSG_FLUSH
-
Start of a hold sequence. Dumps to so_temp
- Socket::MSG_HAVEMORE
-
Dataready to be read - Socket::MSG_HOLD
-
Hold fragment in so_temp
- Socket::MSG_MORE
-
Sender will send more
- Socket::MSG_NOSIGNAL
-
Do not generate SIGPIPE
- Socket::MSG_OOB
-
Processout-of-band data - Socket::MSG_PEEK
-
Peek at incoming message
- Socket::MSG_PROXY
-
Wait for full request
- Socket::MSG_RCVMORE
-
Dataremains in the current packet - Socket::MSG_RST
- Socket::MSG_SEND
-
Send the packet in so_temp
- Socket::MSG_SYN
- Socket::MSG_TRUNC
-
Datadiscarded before delivery - Socket::MSG_WAITALL
-
Wait for full request or error
- Socket::NI_DGRAM
-
The service specified is a datagram service (looks up UDP ports)
- Socket::NI_MAXHOST
-
Maximum length of a hostname
- Socket::NI_MAXSERV
-
Maximum length of a service name
- Socket::NI_NAMEREQD
-
A name is required
- Socket::NI_NOFQDN
-
An FQDN is not required for local hosts, return only the local part
- Socket::NI_NUMERICHOST
-
Return a numeric address
- Socket::NI_NUMERICSERV
-
Return the service name as a digit string
- Socket::PF_ALG
-
Interface to kernel crypto API
- Socket::PF_APPLETALK
-
AppleTalk protocol
- Socket::PF_ATM
-
Asynchronous Transfer Mode
- Socket::PF_AX25
-
AX.25 protocol
- Socket::PF_BLUETOOTH
-
Bluetooth low-level socket protocol
- Socket::PF_CAN
-
Controller Area Network automotive bus protocol
- Socket::PF_CCITT
-
CCITT (now ITU-T) protocols
- Socket::PF_CHAOS
-
MIT CHAOS protocols
- Socket::PF_CNT
-
Computer Network Technology
- Socket::PF_COIP
-
Connection-oriented IP
- Socket::PF_DATAKIT
-
Datakit protocol
- Socket::PF_DEC
-
DECnet protocol
- Socket::PF_DECnet
-
DECnet protocol
- Socket::PF_DLI
-
DEC Direct
DataLink Interface protocol - Socket::PF_ECMA
-
European Computer Manufacturers protocols
- Socket::PF_HYLINK
-
NSC Hyperchannel protocol
- Socket::PF_IB
-
InfiniBand native addressing
- Socket::PF_IMPLINK
-
ARPANET IMP protocol
- Socket::PF_INET
-
IPv4 protocol
- Socket::PF_INET6
-
IPv6 protocol
- Socket::PF_IPX
-
IPX protocol
- Socket::PF_ISDN
-
Integrated Services Digital Network
- Socket::PF_ISO
-
ISO Open Systems Interconnection protocols
- Socket::PF_KCM
-
KCM (kernel connection multiplexor) interface
- Socket::PF_KEY
-
Key management protocol, originally developed for usage with IPsec
- Socket::PF_LAT
-
Local Area Transport protocol
- Socket::PF_LINK
-
Link layer interface
- Socket::PF_LLC
-
Logical link control (IEEE 802.2 LLC) protocol
- Socket::PF_LOCAL
-
Host-internal protocols
- Socket::PF_MAX
-
Maximum address family for this platform
- Socket::PF_MPLS
-
Multiprotocol Label Switching
- Socket::PF_NATM
-
Native ATM access
- Socket::PF_NDRV
-
Network driver raw access
- Socket::PF_NETBIOS
-
NetBIOS
- Socket::PF_NETGRAPH
-
Netgraph sockets
- Socket::PF_NETLINK
-
Kerneluser interface device - Socket::PF_NS
-
XEROX NS protocols
- Socket::PF_OSI
-
ISO Open Systems Interconnection protocols
- Socket::PF_PACKET
-
Direct link-layer access
- Socket::PF_PIP
- Socket::PF_PPP
-
Point-to-Point Protocol
- Socket::PF_PPPOX
-
Generic PPP transport layer, for setting up L2 tunnels (L2TP and PPPoE)
- Socket::PF_PUP
-
PARC Universal Packet protocol
- Socket::PF_RDS
-
Reliable Datagram Sockets (RDS) protocol
- Socket::PF_ROUTE
-
Internal routing protocol
- Socket::PF_RTIP
- Socket::PF_SIP
-
Simple Internet Protocol
- Socket::PF_SNA
-
IBM SNA protocol
- Socket::PF_SYSTEM
- Socket::PF_TIPC
-
TIPC, “cluster domain sockets” protocol
- Socket::PF_UNIX
-
UNIX sockets
- Socket::PF_UNSPEC
-
Unspecified protocol, any supported address family
- Socket::PF_VSOCK
-
VSOCK (originally “VMWare VSockets”) protocol for hypervisor-guest communication
- Socket::PF_XDP
-
XDP (express data path) interface
- Socket::PF_XTP
-
eXpress Transfer Protocol
- Socket::SCM_BINTIME
-
Timestamp (bintime)
- Socket::SCM_CREDENTIALS
-
The sender’s credentials
- Socket::SCM_CREDS
-
Processcredentials - Socket::SCM_RIGHTS
-
Access rights
- Socket::SCM_TIMESTAMP
-
Timestamp (timeval)
- Socket::SCM_TIMESTAMPING
-
Timestamp (timespec list) (Linux 2.6.30)
- Socket::SCM_TIMESTAMPNS
-
Timespec (timespec)
- Socket::SCM_UCRED
-
User credentials
- Socket::SCM_WIFI_STATUS
-
Wifi status (Linux 3.3)
- Socket::SHUT_RD
-
Shut down the reading side of the socket
- Socket::SHUT_RDWR
-
Shut down the both sides of the socket
- Socket::SHUT_WR
-
Shut down the writing side of the socket
- Socket::SOCK_CLOEXEC
-
Setthe close-on-exec (FD_CLOEXEC) flag on the new file descriptor. - Socket::SOCK_DGRAM
-
A datagram socket provides connectionless, unreliable messaging
- Socket::SOCK_NONBLOCK
-
Setthe O_NONBLOCK file status flag on the open file description (see open(2)) referred to by the new file descriptor. - Socket::SOCK_PACKET
-
Device-level packet access
- Socket::SOCK_RAW
-
A raw socket provides low-level access for direct access or implementing network protocols
- Socket::SOCK_RDM
-
A reliable datagram socket provides reliable delivery of messages
- Socket::SOCK_SEQPACKET
-
A sequential packet socket provides sequenced, reliable two-way connection for datagrams
- Socket::SOCK_STREAM
-
A stream socket provides a sequenced, reliable two-way connection for a byte stream
- Socket::SOL_ATALK
-
AppleTalk socket options
- Socket::SOL_AX25
-
AX.25 socket options
- Socket::SOL_IP
-
IP socket options
- Socket::SOL_IPX
-
IPX socket options
- Socket::SOL_SOCKET
-
Socket-level options
- Socket::SOL_TCP
-
TCP socket options
- Socket::SOL_UDP
-
UDP socket options
- Socket::SOMAXCONN
-
Maximum connection requests that may be queued for a socket
- Socket::SOPRI_BACKGROUND
-
Background socket priority
- Socket::SOPRI_INTERACTIVE
-
Interactive socket priority
- Socket::SOPRI_NORMAL
-
Normal socket priority
- Socket::SO_ACCEPTCONN
-
Sockethas had listen() called on it - Socket::SO_ACCEPTFILTER
-
There is an accept filter
- Socket::SO_ALLZONES
-
Bypass zone boundaries
- Socket::SO_ATTACH_FILTER
-
Attach an accept filter
- Socket::SO_BINDTODEVICE
-
Only send packets from the given interface
- Socket::SO_BINTIME
-
Receive timestamp with datagrams (bintime)
- Socket::SO_BPF_EXTENSIONS
-
Query supported BPF extensions (Linux 3.14)
- Socket::SO_BROADCAST
-
Permit sending of broadcast messages
- Socket::SO_BUSY_POLL
-
Setthe threshold in microseconds for low latency polling (Linux 3.11) - Socket::SO_DEBUG
-
Debug info recording
- Socket::SO_DETACH_FILTER
-
Detach an accept filter
- Socket::SO_DOMAIN
-
Domain given for socket() (Linux 2.6.32)
- Socket::SO_DONTROUTE
-
Use interface addresses
- Socket::SO_DONTTRUNC
-
Retain unread data
- Socket::SO_ERROR
-
Get and clear the error status
- Socket::SO_GET_FILTER
-
Obtain filter set by SO_ATTACH_FILTER (Linux 3.8)
- Socket::SO_INCOMING_CPU
-
Receive the cpu attached to the socket (Linux 3.19)
- Socket::SO_INCOMING_NAPI_ID
-
Receive the napi ID attached to a RX queue (Linux 4.12)
- Socket::SO_KEEPALIVE
-
Keep connections alive
- Socket::SO_LINGER
-
Linger on close if data is present
- Socket::SO_LOCK_FILTER
-
Lock the filter attached to a socket (Linux 3.9)
- Socket::SO_MAC_EXEMPT
-
Mandatory Access Control exemption for unlabeled peers
- Socket::SO_MARK
-
Setthe mark for mark-based routing (Linux 2.6.25) - Socket::SO_MAX_PACING_RATE
-
Cap the rate computed by transport layer. [bytes per second] (Linux 3.13)
- Socket::SO_NKE
-
Install socket-level Network
KernelExtension - Socket::SO_NOFCS
-
Setnetns of a socket (Linux 3.4) - Socket::SO_NOSIGPIPE
-
Don’t SIGPIPE on EPIPE
- Socket::SO_NO_CHECK
-
Disable checksums
- Socket::SO_NREAD
-
Get first packet byte count
- Socket::SO_OOBINLINE
-
Leave received out-of-band data in-line
- Socket::SO_PASSCRED
-
Receive SCM_CREDENTIALS messages
- Socket::SO_PASSSEC
-
Toggle security context passing (Linux 2.6.18)
- Socket::SO_PEEK_OFF
-
Setthe peek offset (Linux 3.4) - Socket::SO_PEERCRED
-
The credentials of the foreign process connected to this socket
- Socket::SO_PEERNAME
-
Name of the connecting user
- Socket::SO_PEERSEC
-
Obtain the security credentials (Linux 2.6.2)
- Socket::SO_PRIORITY
-
The protocol-defined priority for all packets on this socket
- Socket::SO_PROTOCOL
-
Protocol given for socket() (Linux 2.6.32)
- Socket::SO_RCVBUF
-
Receive buffer size
- Socket::SO_RCVBUFFORCE
-
Receive buffer size without rmem_max limit (Linux 2.6.14)
- Socket::SO_RCVLOWAT
-
Receive low-water mark
- Socket::SO_RCVTIMEO
-
Receive timeout
- Socket::SO_RECVUCRED
-
Receive user credentials with datagram
- Socket::SO_REUSEADDR
-
Allow local address reuse
- Socket::SO_REUSEPORT
-
Allow local address and port reuse
- Socket::SO_RTABLE
-
Setthe routing table for this socket (OpenBSD) - Socket::SO_RXQ_OVFL
-
Toggle cmsg for number of packets dropped (Linux 2.6.33)
- Socket::SO_SECURITY_AUTHENTICATION
- Socket::SO_SECURITY_ENCRYPTION_NETWORK
- Socket::SO_SECURITY_ENCRYPTION_TRANSPORT
- Socket::SO_SELECT_ERR_QUEUE
-
Make select() detect socket error queue with errorfds (Linux 3.10)
- Socket::SO_SETFIB
-
Setthe associated routing table for the socket (FreeBSD) - Socket::SO_SNDBUF
-
Send buffer size
- Socket::SO_SNDBUFFORCE
-
Send buffer size without wmem_max limit (Linux 2.6.14)
- Socket::SO_SNDLOWAT
-
Send low-water mark
- Socket::SO_SNDTIMEO
-
Send timeout
- Socket::SO_TIMESTAMP
-
Receive timestamp with datagrams (timeval)
- Socket::SO_TIMESTAMPING
-
Timestamping of incoming and outgoing packets (Linux 2.6.30) - Socket::SO_TIMESTAMPNS
-
Receive nanosecond timestamp with datagrams (timespec)
- Socket::SO_TYPE
-
Get the socket type
- Socket::SO_USELOOPBACK
-
Bypass hardware when possible
- Socket::SO_USER_COOKIE
-
Setting an identifier for ipfw purpose mainly
- Socket::SO_WANTMORE
-
Give a hint when more data is ready
- Socket::SO_WANTOOBFLAG
-
OOB data is wanted in MSG_FLAG on receive
- Socket::SO_WIFI_STATUS
-
Toggle cmsg for wifi status (Linux 3.3)
- Socket::TCP_CONGESTION
-
TCP congestion control algorithm (Linux 2.6.13, glibc 2.6)
- Socket::TCP_CONNECTION_INFO
-
Retrieve information about this socket (macOS)
- Socket::TCP_COOKIE_TRANSACTIONS
-
TCP Cookie Transactions (Linux 2.6.33, glibc 2.18)
- Socket::TCP_CORK
-
Don’t send partial frames (Linux 2.2, glibc 2.2)
- Socket::TCP_DEFER_ACCEPT
-
Don’t notify a listening socket until data is ready (Linux 2.4, glibc 2.2)
- Socket::TCP_FASTOPEN
-
Reduce step of the handshake process (Linux 3.7, glibc 2.18)
- Socket::TCP_INFO
-
Retrieve information about this socket (Linux 2.4, glibc 2.2)
- Socket::TCP_KEEPALIVE
-
Idle time before keepalive probes are sent (macOS)
- Socket::TCP_KEEPCNT
-
Maximum number of keepalive probes allowed before dropping a connection (Linux 2.4, glibc 2.2)
- Socket::TCP_KEEPIDLE
-
Idle time before keepalive probes are sent (Linux 2.4, glibc 2.2)
- Socket::TCP_KEEPINTVL
-
Timebetween keepalive probes (Linux 2.4, glibc 2.2) - Socket::TCP_LINGER2
-
Lifetime of orphaned FIN_WAIT2 sockets (Linux 2.4, glibc 2.2)
- Socket::TCP_MAXSEG
-
Setmaximum segment size - Socket::TCP_MD5SIG
-
Use MD5 digests (RFC2385, Linux 2.6.20, glibc 2.7)
- Socket::TCP_NODELAY
-
Don’t delay sending to coalesce packets
- Socket::TCP_NOOPT
-
Don’t use TCP options
- Socket::TCP_NOPUSH
-
Don’t push the last block of write
- Socket::TCP_QUEUE_SEQ
-
Sequence of a queue for repair mode (Linux 3.5, glibc 2.18)
- Socket::TCP_QUICKACK
-
Enable quickack mode (Linux 2.4.4, glibc 2.3)
- Socket::TCP_REPAIR
-
Repair mode (Linux 3.5, glibc 2.18)
- Socket::TCP_REPAIR_OPTIONS
-
Options for repair mode (Linux 3.5, glibc 2.18)
- Socket::TCP_REPAIR_QUEUE
-
Queue for repair mode (Linux 3.5, glibc 2.18)
- Socket::TCP_SYNCNT
-
Number of SYN retransmits before a connection is dropped (Linux 2.4, glibc 2.2)
- Socket::TCP_THIN_DUPACK
-
Duplicated acknowledgments handling for thin-streams (Linux 2.6.34, glibc 2.18)
- Socket::TCP_THIN_LINEAR_TIMEOUTS
-
Linear timeouts for thin-streams (Linux 2.6.34, glibc 2.18)
- Socket::TCP_TIMESTAMP
-
TCP timestamp (Linux 3.9, glibc 2.18)
- Socket::TCP_USER_TIMEOUT
-
Max timeout before a TCP connection is aborted (Linux 2.6.37, glibc 2.18)
- Socket::TCP_WINDOW_CLAMP
-
Clamp the size of the advertised window (Linux 2.4, glibc 2.2)
- Socket::UDP_CORK
-
Don’t send partial frames (Linux 2.5.44, glibc 2.11)
- StringScanner::Id
- StringScanner::Version
- TOPLEVEL_BINDING
-
The
Bindingof the top level scope - Time::RFC2822_DAY_NAME
- Time::RFC2822_MONTH_NAME
- Timeout::VERSION
-
The version
- URI::ABS_PATH
- URI::ABS_URI
- URI::ABS_URI_REF
- URI::DEFAULT_PARSER
-
The default parser instance.
- URI::ESCAPED
- URI::FRAGMENT
- URI::HOST
- URI::OPAQUE
- URI::PORT
- URI::QUERY
- URI::REGISTRY
- URI::REL_PATH
- URI::REL_URI
- URI::REL_URI_REF
- URI::RFC2396_PARSER
-
The default parser instance for RFC 2396.
- URI::RFC3986_PARSER
-
The default parser instance for RFC 3986.
- URI::SCHEME
- URI::TBLDECWWWCOMP_
- URI::TBLENCWWWCOMP_
- URI::UNSAFE
- URI::URI_REF
- URI::USERINFO
- URI::VERSION
- URI::VERSION_CODE
- URI::WEB_ENCODINGS_
- Zlib::ASCII
-
Represents text data as guessed by deflate.
NOTE: The underlying constant Z_ASCII was deprecated in favor of Z_TEXT in zlib 1.2.2. New applications should not use this constant.
- Zlib::BEST_COMPRESSION
-
Slowest compression level, but with the best space savings.
- Zlib::BEST_SPEED
-
Fastest compression level, but with the lowest space savings.
- Zlib::BINARY
-
Represents binary data as guessed by deflate.
- Zlib::DEFAULT_COMPRESSION
-
Default compression level which is a good trade-off between space and time
- Zlib::DEFAULT_STRATEGY
-
Default deflate strategy which is used for normal data.
- Zlib::DEF_MEM_LEVEL
-
The default memory level for allocating zlib deflate compression state.
- Zlib::FILTERED
-
Deflate strategy for data produced by a filter (or predictor). The effect of FILTERED is to force more Huffman codes and less string matching; it is somewhat intermediate between DEFAULT_STRATEGY and HUFFMAN_ONLY. Filtered data consists mostly of small values with a somewhat random distribution.
- Zlib::FINISH
-
Processes all pending input and flushes pending output.
- Zlib::FIXED
-
Deflate strategy which prevents the use of dynamic Huffman codes, allowing for a simpler decoder for specialized applications.
- Zlib::FULL_FLUSH
-
Flushes all output as with SYNC_FLUSH, and the compression state is reset so that decompression can restart from this point if previous compressed data has been damaged or if random access is desired. Like SYNC_FLUSH, using FULL_FLUSH too often can seriously degrade compression.
- Zlib::HUFFMAN_ONLY
-
Deflate strategy which uses Huffman codes only (no string matching).
- Zlib::MAX_MEM_LEVEL
-
The maximum memory level for allocating zlib deflate compression state.
- Zlib::MAX_WBITS
-
The maximum size of the zlib history buffer. Note that zlib allows larger values to enable different inflate modes. See
Zlib::Inflate.newfor details. - Zlib::NO_COMPRESSION
-
No compression, passes through data untouched. Use this for appending pre-compressed data to a deflate stream.
- Zlib::NO_FLUSH
-
NO_FLUSH is the default flush method and allows deflate to decide how much data to accumulate before producing output in order to maximize compression.
- Zlib::OS_AMIGA
-
OS code for Amiga hosts
- Zlib::OS_ATARI
-
OS code for Atari hosts
- Zlib::OS_CODE
-
The OS code of current host
- Zlib::OS_CPM
-
OS code for CP/M hosts
- Zlib::OS_MACOS
-
OS code for Mac OS hosts
- Zlib::OS_MSDOS
-
OS code for MSDOS hosts
- Zlib::OS_OS2
-
OS code for OS2 hosts
- Zlib::OS_QDOS
-
OS code for QDOS hosts
- Zlib::OS_RISCOS
-
OS code for RISC OS hosts
- Zlib::OS_TOPS20
-
OS code for TOPS-20 hosts
- Zlib::OS_UNIX
-
OS code for UNIX hosts
- Zlib::OS_UNKNOWN
-
OS code for unknown hosts
- Zlib::OS_VMCMS
-
OS code for VM OS hosts
- Zlib::OS_VMS
-
OS code for VMS hosts
- Zlib::OS_WIN32
-
OS code for Win32 hosts
- Zlib::OS_ZSYSTEM
-
OS code for Z-System hosts
- Zlib::RLE
-
Deflate compression strategy designed to be almost as fast as HUFFMAN_ONLY, but give better compression for PNG image data.
- Zlib::SYNC_FLUSH
-
The SYNC_FLUSH method flushes all pending output to the output buffer and the output is aligned on a byte boundary. Flushing may degrade compression so it should be used only when necessary, such as at a request or response boundary for a network stream.
- Zlib::TEXT
-
Represents text data as guessed by deflate.
- Zlib::UNKNOWN
-
Represents an unknown data type as guessed by deflate.
- Zlib::VERSION
-
The Ruby/zlib version string.
- Zlib::ZLIB_VERSION
-
The string which represents the version of zlib.h
Public Class Methods
Source
# File vendor/bundle/ruby/4.0.0/gems/bake-0.25.0/bake/input.rb, line 6 def initialize(...) super require_relative "../lib/bake/format" end
Released under the MIT License. Copyright, 2022-2025, by Samuel Williams.
BasicObject::new
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.1/stdlib/delegate/0/kernel.rbs, line 46
def DelegateClass: (Class) -> Class
The primary interface to this library. Use to setup delegation when defining your class.
class MyClass < DelegateClass(ClassToDelegateTo) # Step 1 def initialize super(obj_of_ClassToDelegateTo) # Step 2 end end
or:
MyClass = DelegateClass(ClassToDelegateTo) do # Step 1 def initialize super(obj_of_ClassToDelegateTo) # Step 2 end end
Here’s a sample of use from Tempfile which is really a File object with a few special rules about storage location and when the File should be deleted. That makes for an almost textbook perfect example of how to use delegation.
class Tempfile < DelegateClass(File) # constant and class member data initialization... def initialize(basename, tmpdir=Dir::tmpdir) # build up file path/name in var tmpname... @tmpfile = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL, 0600) # ... super(@tmpfile) # below this point, all methods of File are supported... end # ... end
(interned name) → singleton(::Digest::Base)
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.1/stdlib/digest/0/digest.rbs, line 692
def Digest: (interned name) -> singleton(::Digest::Base)
Returns a Digest subclass by name in a thread-safe manner even when on-demand loading is involved.
require 'digest' Digest("MD5") # => Digest::MD5 Digest(:SHA256) # => Digest::SHA256 Digest(:Foo) # => LoadError: library not found for class Digest::Foo -- digest/foo
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/extconf.rb, line 116 def add_libprism_source(path) $VPATH << path src_list path end
Source
# File vendor/bundle/ruby/4.0.0/gems/console-1.37.0/bake/console.rb, line 14 def debug require_relative "../lib/console" Console.logger.debug! end
Increase the verbosity of the logger to debug.
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/extconf.rb, line 37 def generate_templates Dir.chdir(File.expand_path("../..", __dir__)) do if !File.exist?("include/prism/ast.h") && Dir.exist?(".git") system(RbConfig.ruby, "templates/template.rb", exception: true) end end end
If this gem is being build from a git source, then we need to run templating if it hasn’t been run yet. In normal packaging, we would have shipped the templated files with the gem, so this wouldn’t be necessary.
# File vendor/bundle/ruby/4.0.0/gems/bigdecimal-4.1.2/ext/bigdecimal/extconf.rb, line 4 def have_builtin_func(name, check_expr, opt = "", &b) checking_for checking_message(name.funcall_style, nil, opt) do if try_compile(<<SRC, opt, &b) int foo; int main() { #{check_expr}; return 0; } SRC $defs.push(format("-DHAVE_BUILTIN_%s", name.tr_cpp)) true else false end end end
Source
# File vendor/bundle/ruby/4.0.0/gems/console-1.37.0/bake/console.rb, line 7 def info require_relative "../lib/console" Console.logger.info! end
Increase the verbosity of the logger to info.
# File vendor/bundle/ruby/4.0.0/gems/bake-0.25.0/bake/input.rb, line 15 def input(file: $stdin, format: nil) if format = format_for(file, format) format.input(file) else raise "Unable to determine input format of #{file}!" end end
Parse an input file (defaulting to stdin) in the specified format. The format can be extracted from the file extension if left unspecified. @parameter file [Input] The input file. @parameter format [Symbol] The input format, e.g. json, yaml.
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/extconf.rb, line 48 def make(env, target) puts "Running make #{target} with #{env.inspect}" Dir.chdir(File.expand_path("../..", __dir__)) do system( env, RUBY_PLATFORM.match?(/openbsd|freebsd/) ? "gmake" : "make", target, exception: true ) end end
Runs make in the root directory of the project. Note that this is the Makefile for the overall project, not the Makefile that is being generated by this script.‘
Source
# File vendor/bundle/ruby/4.0.0/gems/bake-0.25.0/bake/output.rb, line 27 def null(input:) # This is a no-op, used to indicate that no output should be produced. return input end
Do not produce any output.
# File vendor/bundle/ruby/4.0.0/gems/bake-0.25.0/bake/output.rb, line 15 def output(input:, file: $stdout, format: nil) if format = format_for(file, format) format.output(file, input) else raise "Unable to determine output format!" end # Allow chaining of output processing: return input end
Dump the last result to the specified file (defaulting to stdout) in the specified format (defaulting to Ruby’s pretty print). @parameter file [Output] The input file. @parameter format [Symbol] The output format.
Source
# File vendor/bundle/ruby/4.0.0/gems/bake-0.25.0/bake/output.rb, line 33 def output?(recipe) true end
This command produces output, and therefore doesn’t need default output handling.
Source
# File vendor/bundle/ruby/4.0.0/gems/bake-0.25.0/bake/input.rb, line 26 def parse(text, format: :json) file = StringIO.new(text) if format = format_for(nil, format) format.input(file) else raise "Unable to determine input format!" end end
Parse some input text in the specified format (defaulting to JSON). @parameter text [String] The input text. @parameter format [Symbol] The input format, e.g. json, yaml.
Source
# File vendor/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/extconf.rb, line 110 def src_list(path) srcdir = path.dup RbConfig.expand(srcdir) # mutates srcdir :-/ Dir[File.join(srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] end
# File vendor/bundle/ruby/4.0.0/gems/webrick-1.9.2/lib/webrick/httpservlet/cgi_runner.rb, line 12 def sysread(io, size) buf = +"" while size > 0 tmp = io.sysread(size) buf << tmp size -= tmp.bytesize end return buf end
(?JSON::State? state) → String
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.1/stdlib/json/0/json.rbs, line 1252
def to_json: (?JSON::State? state) -> String
(?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) → String
[IO] (IO, ?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) → IO
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.1.1/stdlib/psych/0/core_ext.rbs, line 10
def to_yaml: (?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> String
| [IO] (IO, ?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> IO
Convert an object to YAML. See Psych.dump for more information on the available options.