Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,195,076 members, 7,957,009 topics. Date: Tuesday, 24 September 2024 at 03:53 AM |
Nairaland Forum / Science/Technology / Programming / Require English - A Ruby Tip For Rubyists (743 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
|
(1) (Reply)
Things To Keep In Mind To Make Noteworthy Mobile Banking Application / Want To Know More About Business Vector Icons? / Do You Need Rat, Script Or Clone A Website
(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. 7 |