ruby fun

ok, let’s get straight into irb because REPL speaks a thousand words…

irb> %w_a b c_
=> ['a', 'b', 'c']

That was cryptic…try this

irb> %i_a b c_
=> [:a, :b, :c]

That save a whole bunch of keystrokes…how about this

irb> %r_a/b/c_
=> /a\/b\/c/

That makes regular expression with forward slash more readable…in fact there’s a whole slew of them %: %q, %x, %

ok, that’s enough fun for now.

 
0
Kudos
 
0
Kudos

Now read this

Financial System Inquiry

Time to exercise your citizenship rights. Here is my Financial System Inquiry Submission on Stability - Addressing too-big-to-fail To David Murray The enactment of United States of America Glass Steagall Act 1933, here in Australia, is... Continue →