Module Backports
In: lib/backports/version.rb
lib/backports/tools/suppress_verbose_warnings.rb
lib/backports/tools/std_lib.rb
lib/backports/tools/require_relative_dir.rb
lib/backports/tools/path.rb
lib/backports/tools/make_block_optional.rb
lib/backports/tools/io.rb
lib/backports/tools/extreme_object.rb
lib/backports/tools/arguments.rb
lib/backports/tools/alias_method_chain.rb
lib/backports/tools/alias_method.rb
lib/backports/random/implementation.rb
lib/backports/random/bits_and_bytes.rb
lib/backports/random/MT19937.rb

Methods

Classes and Modules

Module Backports::StdLib
Class Backports::Random

Constants

VERSION = "3.6.4" unless const_defined? :VERSION
MOST_EXTREME_OBJECT_EVER = Object.new # :nodoc:
Undefined = Object.new   Used internally to make it easy to deal with optional arguments (from Rubinius)

Public Class methods

Safe alias_method that will only alias if the source exists and destination doesn‘t

Modified to avoid polluting Module if so desired (from Rails)

Helper method to coerce a value into a specific class. Raises a TypeError if the coercion fails or the returned value is not of the right class. (from Rubinius)

Checks for a failed comparison (in which case it throws an ArgumentError) Additionally, it maps any negative value to -1 and any positive value to +1 (from Rubinius)

Used internally to combine {IO|File} options hash into mode (String or Integer)

Metaprogramming utility to convert all file arguments to paths

Metaprogramming utility to convert the first file argument to path

Metaprogramming utility to make block optional. Tests first if block is already optional when given options

[Validate]