₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,273 members, 8,510,978 topics. Date: Saturday, 31 October 2026 at 02:06 PM

Toggle theme

Require English - A Ruby Tip For Rubyists - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Require English - A Ruby Tip For Rubyists (796 Views)

1 Reply

Require English - A Ruby Tip For Rubyists by harryobas(op): 7:58am On Jul 27, 2018
Howdy

Did you know that Ruby puts the currently-processing exception into a global variable: $!? There are lots of cryptically-named globals. Fortunately we can make them use more sensible names by requiring the English module.

Here are a few of the variables that the English module brings into scope.

$ERROR_INFO $!
$ERROR_POSITION $@
$FIELD_SEPARATOR $;
$OFS $,
$PROCESS_ID $$
$CHILD_STATUS $?
$MATCH $&

Happy Coding smiley

1 Reply

I Need A Ruby Developer(paid) • A Guide On How To Build A Ruby On Rails API • Tip To Get Added To The ALX Room As A Fellow Without Stress • 2 • 3 • 4

Ios Development • NEWSLETTER POPUP PRO For Magento 2 • Opening for - Software Developers.