Maybe using yield might be better indeed, like Roger recommended some
time ago. It seems that this named block variable doesn't help much as
i hoped. Too bad that Ruby won't throw error or show warning if named
block variables are used but no block given... for me it's like x
parameters are needed, but x-1 parameters given and there's no default
value for block so error should be shown like it is done with other
cases where more or less parameters are given to the method than
expected.
Jarmo
On Aug 4, 5:54*pm, Roger Pack <rogerpack2...@gmail.com> wrote:
> vardhan patil wrote:
> > Me using the latest version of gem win32screen shot..
> > But while taking desktop screenshot i get undefined method `call for
> > nil:NilClass
> > for capture_area in bitmap maker.rb line 159
> > bitmap maker.rb line 127
> > and screenshot.rb line 29
>
> > Plz help
>
> You need to pass it a block, like the readme examples do.
>
> http://github.com/jarmo/win32screenshot
> --
> Posted viahttp://www.ruby-forum.com/.