Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,153,031 members, 7,818,045 topics. Date: Sunday, 05 May 2024 at 05:52 AM

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

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

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)

(1) (Reply)

Require English - A Ruby Tip For Rubyists by harryobas: 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)

Using Blockchain Technology To Boost Cyber Security / Gems Decentralized Mturk / Ecommerce Laravel /django

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 5
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.