Notes posted by rab
RSS feed
rab -
November 17, 2014 - (>= v3.1.0)
0 thanks
Include items affected in output
If the result returned from the block is an Integer, the output will include a message about that number of “rows” in addition to the elapsed time.
say_with_time "Some complex, custom work" do counter = 0 # ... do some stuff here that increments the counter ... counter end #=> "-- Some complex, custom work" #=> " -> 45.3725s" #=> " -> 52880 rows"
rab -
November 17, 2014 - (<= v4.0.2)
0 thanks
Include items affected in output
If the result returned from the block is an Integer, the output will include a message about that number of “rows” in addition to the elapsed time.
say_with_time "Some complex, custom work" do counter = 0 # ... do some stuff here that increments the counter ... counter end #=> "-- Some complex, custom work" #=> " -> 45.3725s" #=> " -> 52880 rows"
rab -
April 1, 2014
2 thanks
Sometimes, you need the "Oxford comma"
Re: Gramatical error
We invited the strippers, JFK, and Stalin.
versus the appositive phrase:
We invited the strippers, JFK and Stalin.
(Really, you need to see the comic to appreciate the difference.)