Module | Backports |
In: |
lib/backports/tools.rb
lib/backports/version.rb |
Methods used internally by the backports.
Undefined | = | Object.new | Used internally to make it easy to deal with optional arguments (from Rubinius) | |
VERSION | = | "2.7.1" |
Used internally. 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)
Metaprogramming utility to make block optional. Tests first if block is already optional when given options