Displaying 2 results from an estimated 2 matches for "string_each".
2009 Nov 24
0
xrcise now works
...he problem you are having, is the fact that Ruby 1.9 String standard class
no longer implements the each method on it. Which basically, for string,
each splits the lines at the \n terminator, returning each line to the
block, so you need to create a library file, and have it included, as
follows:
string_each.rb:
class String
def each
self.split("\n").each do |line|
yield line
end
end
end
Then there''s two ways you can work this, either on the command line, do the
following:
xrcise -rstring_each -o TestWxFb.rb TestWxFb.xrc
Or, modify the xrcise script itself, foun...
2009 Nov 23
1
xrcise not working
Hi. I''m back. Unfortunately I can''t get xrcise working. Here is the
sample xrc file and the resulting error messages:
=============== TestWxFb.xrc =========================================
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<resource xmlns="http://www.wxwindows.org/wxxrc" version="2.3.0.1">