# Xrciser problem

**URL:** <https://www.ruby-forum.com/t/xrciser-problem/164090>\
**Category:** wxRuby\
**Created:** [March 27, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/xrciser-problem/164090 "2009-03-27T19:39:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@larry](https://www.ruby-forum.com/u/larry)\
**Post date:** [March 27, 2009, 7:39pm UTC](https://www.ruby-forum.com/t/xrciser-problem/164090/1 "2009-03-27T19:39:01Z")

</div>

I built a Windows GUI using DialogBlocks v4.29, saved the resulting XRC  
for processing with wxRuby’s xrciser tool.

Following Ruby products installed:  
wxRuby is v 2.0.0  
wxSugar is v0.1.22  
Ruby is v1.9.1  
Rubygems is v1.3.1

Running xrciser on the file gives the following:

C:\ruby\>xrcise -o toolgui.rb tool.xrc  
c:/ruby/lib/ruby/gems/1.9.1/gems/wx\_sugar-0.1.22/lib/wx\_sugar/xrc/outputter.rb:4  
6:in `clean_id_attr_readers': undefined method`each’ for  
#String:0xe7cdf8 (No  
MethodError)  
from (erb):16:in `output' from c:/ruby/lib/ruby/1.9.1/erb.rb:753:in`eval’  
from c:/ruby/lib/ruby/1.9.1/erb.rb:753:in `result' from c:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/lib/wx_sugar/xrc/o utputter.rb:19:in`output’  
from  
c:/ruby/lib/ruby/gems/1.9.1/gems/wx\_sugar-0.1.22/bin/xrcise:126:in  
`block (2 levels) in <top (required)>' from c:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/bin/xrcise:125:in`each’  
from  
c:/ruby/lib/ruby/gems/1.9.1/gems/wx\_sugar-0.1.22/bin/xrcise:125:in  
`block in <top (required)>' from c:/ruby/lib/ruby/gems/1.9.1/gems/wx_sugar-0.1.22/bin/xrcise:124:in`open’  
from  
c:/ruby/lib/ruby/gems/1.9.1/gems/wx\_sugar-0.1.22/bin/xrcise:124:in  
`<top (required)>' from c:/ruby/bin/xrcise:19:in`load’  
from c:/ruby/bin/xrcise:19:in `’

Checked the outputter source; can’t understand why “each” is not a  
method for “str” here so tried debugging – got an error saying  
ruby-debug not working with Ruby 1.9.1 yet.

Any clues as to what is going on? Here is the xrc:

\<?xml version="1.0" encoding="UTF-8"?\> wxDEFAULT\_FRAME\_STYLE|wxCAPTION|wxCLOSE\_BOX|wxTAB\_TRAVERSAL #b1bdd1 590,612 Tool 1 wxVERTICAL wxGROW 5 2 wxHORIZONTAL wxALIGN\_TOP 5 1 0,1 0,1 0 0 10,20 wxGROW|wxGROW 5 0,0 1,2 wxVERTICAL wxGROW|wxALL 5 1 Instructions wxALIGN\_LEFT Step 1 wxGROW|wxGROW 5 1,0 1,3 wxVERTICAL wxGROW|wxALL 5 3 Choose Spreadsheet wxFLP\_DEFAULT\_STYLE C:\\ruby\\tool.xrc Select a file \*.\* wxALIGN\_LEFT|wxALIGN\_TOP 5 0,2 1,1 wxVERTICAL wxALIGN\_LEFT|wxALL 5 Select wxRA\_SPECIFY\_COLS Choose 1 0 A B C D wxGROW|wxGROW|wxALL 5 0,2 1,1 wxHW\_SCROLLBAR\_NEVER 1 wxALIGN\_CENTER\_HORIZONTAL|wxTOP|wxBOTTOM 5 wxHORIZONTAL wxALIGN\_TOP|wxALL 5 Select wxRA\_SPECIFY\_COLS Action 1 0 1 2 wxALIGN\_CENTER\_VERTICAL|wxALL 5 Go wxALIGN\_CENTER\_VERTICAL|wxALL 5 Done wxGROW|wxALL 5 Progress wxGA\_HORIZONTAL|wxGA\_SMOOTH 0 100 wxGROW|wxALL 5 1
