On Fri, 2007-02-23 at 15:31 +0900, Sharma Chelluri wrote:
> Hi
> 
> I am trying to execute this program from cookbook.
> 
>        def endless_string_succession(start)
>     while true
>       yield start
>       start = start.succ
>     end
>   end
> 
>    puts endless_string_succession 'aa'
> 
> **********************************************
> Error messages that I am getting
> 
> C:/rubyexmples/1_16.rb:8: warning: parenthesize argument(s) for future
> version
> C:/rubyexmples/1_16.rb:3:in `endless_string_succession': no block given
> (LocalJumpError)
>   from C:/rubyexmples/1_16.rb:8
> 
> Any ideas?

You forgot to pass the block to the method.

endless_string_succession('fsck') {|str| #some crap }