named arguments woe

C:\dev\ruby\p2pwebclient\src>ruby tests_working\test_all.rb

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `module_eval’: C:/dev/ruby/p
2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:130: syntax error, unexpected keyword_and (Synt
axError)
and = opts.key?(:and) ? opts[:and] : args.fetch(12)
^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:166: syntax error, unexpected keyw
ord_in
in = opts.key?(:in) ? opts[:in] : args.fetch(18)
^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:208: syntax error, unexpected ‘=’
for = opts.key?(:for) ? opts[:for] : args.fetch(25)
^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’
… we, ll, keep, pool, size, and, pool, creation, race, size, …
…                               ^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected keyw
ord_in, expecting ‘=’
…creation, race, size, close, in, number, to, free, up, some,…
…                               ^
C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’
…ee, up, some, descriptors, for, ourselves, &block
…                               ^
from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `block in named
_arguments_for’
from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `each’
from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `named_arguments
_for’
from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:50:in `<class:OpenDHTEM>’
from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:3:in `<top (required)>’This

This odd error meant “you have a ruby comment on the line of a method definition–don’t do that!”

C:\dev\ruby\p2pwebclient\src>ruby tests_working\test_all.rb

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `module_eval’: C:/dev/ruby/p

2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:130: syntax error, unexpected keyword_and (Synt

axError)

and = opts.key?(:and) ? opts[:and] : args.fetch(12)

^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:166: syntax error, unexpected keyw

ord_in

in = opts.key?(:in) ? opts[:in] : args.fetch(18)

^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:208: syntax error, unexpected ‘=’

for = opts.key?(:for) ? opts[:for] : args.fetch(25)

^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’

… we, ll, keep, pool, size, and, pool, creation, race, size, …

…                               ^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected keyw

ord_in, expecting ‘=’

…creation, race, size, close, in, number, to, free, up, some,…

…                               ^

C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:219: syntax error, unexpected ‘,’

…ee, up, some, descriptors, for, ourselves, &block

…                               ^

from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:42:in `block in named

_arguments_for’

from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `each’

from C:/dev/ruby/p2pwebclient/src/lib/gems_here/arguments-0.4.7.5/lib/arguments/class.rb:5:in `named_arguments

_for’

from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:50:in `<class:OpenDHTEM>’

from C:/dev/ruby/p2pwebclient/src/lib/opendht/opendht_em.rb:3:in `<top (required)>’

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>