₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,083 members, 8,420,222 topics. Date: Thursday, 04 June 2026 at 01:56 PM

Toggle theme

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

Nairaland ForumScience/TechnologyProgrammingRequire English - A Ruby Tip For Rubyists (784 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 APITip To Get Added To The ALX Room As A Fellow Without Stress234

Demystifying Redux Part 2NEWSLETTER POPUP PRO For Magento 2Opening for - Software Developers.