I'm a bit behind and working to catch up, but had a question as to why
I don't see any output from the following;
my_method(3, "Sang Shin", {:a => " loves ", :b => " Young Shin"}) {|s|
puts s}
In other words, if this is treated as an array and the block {|s| puts
s} is actually working (it doesn't throw any errors) then why don't I
see the result of the puts s in the block? In other words, why does
the example need teh leading "puts" to actually generate output.
puts my_method(3, "Sang Shin", {:a => " loves ", :b => " Young Shin"})
{|s| puts s}
Thanks,
Ed
--
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en