HomePhorge

Implement `Fixnum#ord` for Ruby 1.8.5
69315c2c1aa6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Implement Fixnum#ord for Ruby 1.8.5

This is a compatibility method for addressing characters introduced in 1.8.7;
we also need the same compatibility back to 1.8.5, so we monkey-patch it in
when it isn't already there.

Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>

Details

Provenance
Daniel Pittman <daniel@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUf60e402bd182: tagging: use a static regexp rather than rebuilding it
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Pittman <daniel@puppetlabs.com> committed rPU69315c2c1aa6: Implement `Fixnum#ord` for Ruby 1.8.5 (authored by Daniel Pittman <daniel@puppetlabs.com>).Sep 18 2012, 3:24 AM