Displaying 1 result from an estimated 1 matches for "stolid".
Did you mean:
solid
2007 Jul 16
4
Set the return value to "same as block"
...:
def my_method
open("/path/to/file", "r") { |file| file.read }
end
and this wouldn''t work (because the return value of the block is not the
contents of the file):
def my_method
open("/path/to/file", "r") do |file|
file.read
puts "Stolid in my guilt, clutching it like a girl with a stuffed
bunny, I failed to follow."
end
end
--
Jonathan Leighton, Web Developer
http://jonathanleighton.com/