11291-14137 subjects 11739-12280

Ruby and Windows
11501 [joeguy@no sp] I'm currently learning Ruby while running RubyWin - is there a
11919 [masaki.suket] Yes, is available (but only source).

ANN: ri - the Ruby Interactive reference
11511 [Dave@Pr gm t] Have you forgotten the parameters that each_with index passes to it's
+ 11512 [barry_shultz] ri.rb:163: warning: Old marshal file format (can be read)
| 11513 [hideto-i@rr ] I got no errors with ruby 1.6.2.
| 11514 [barry_shultz] Thanks. I uninstalled 1.6.1 and installed 1.6.2 and it looks good ( except
| + 11518 [Dave@Pr gm t] That means I'm going to have to find a different way to store the
| + 11530 [Dave@Pr gm t] V0.2 is now available, and should fix both of these.
|   + 11533 [barry_shultz] I installed it and it's working fine; thanks for the fast fix.
|   + 11542 [jdf@po ox co] Did the trick!
+ 11516 [jdf@po ox co] Thank you!  Unfortunately, the distro as it currently stands is
| 11522 [harryo@zi wo] The classes with embedded colons don't seem to work for me on Redhat
| 11525 [harryo@zi wo] I changed the main code in "ri.rb" to the following and it now seems
| 11526 [harryo@zi wo] Of course, I should have said that with this change, you have to use
+ 11551 [harryo@zi wo] Just out of interest, Dave, does ri handle inherited methods?
  11562 [Dave@Pr gm t] ri currently contains just the method listing from the pickaxe book

TCPsocket broken on Win2k?
11515 [jdf@po ox co] Any attempt to use get() or post() in Net::HTTP results in

vim macros for ri
11532 [eventi@ny c.] map \rb   :!ruby <C-R>% > /tmp/ruby.out<C-M><C-M><C-W>s:e

Ruby book on memepool
11536 [j.radcliffe@] Speaking of publicity, there was link entitled "Object-Oriented

jEdit for Ruby
11549 [noel.rappin@] For those of you (if any) using jEdit, some simple things that I've found

OOP Good, OOP Funny, OOP Very, very Bad
11564 [dazh_ribrogg] Hey, Ruby made it on www.memepool.com for Saturday, Feb 24, 2001.

A design/implementation question
11567 [Dave@Pr gm t] I'm looking for some inspiration.
+ 11582 [maki@in c. o] I tried ri. My impression: Cool!
| 11594 [ben_tilly@ho] Yes.  Use ruby as your parser.
| 11597 [sent@qu li y] How complex is your XML? As I mentioned, I was
+ 11601 [spwhite@ch r] Convert the XML to Ruby, then Ruby can parse it.
  11619 [schneik@us i] # To do that with the current scheme would require that every client
  11625 [wmwilson01@h] It can, and so it shall be...

Allow extension but not modification...
11577 [wys@he bl ng] Is there a way to protect a class (module) so that it can be extended

clone'ing a binding (context)
11579 [wys@he bl ng] I hoped to really get a deep-copy of a binding context when cloning it.

net/http is going to change
11584 [aamine@dp u-] I'm going to make big change on net/http in Ruby 1.7 and later

ri patch for the lazy - prefix matching
11587 [feldt@ce ch ] Dear Dave,
11623 [harryo@zi wo] I find it useful !!  It works brilliantly.  Well done.

RCR Summary 02/26/01
11590 [wmwilson01@h] RCR summaries will now take place on Monday, starting now ;)
11613 [schneik@us i] # RCR summaries will now take place on Monday, starting now ;)
11624 [wmwilson01@h] hmm, sorry, yes it does refer to the origins, I'll be more specific next

XML again (was Re:  Re: trial balloon: Ruby desktop?)
11591 [dblack@ca dl] I know this is off-topic, though perhaps it's on-topic in a meta-topic
11616 [schneik@us i] # I know this is off-topic, though perhaps it's on-topic in a meta-topic
11695 [john_van_v@y] Good to be optimistic but remember that vile stuff like ASP and EJB rule the

Message thread on Kuro5hin
11592 [spwhite@ch r] Made me smile, and has a couple of interesting points.

Programming Ruby book review in DDJ
11593 [aleksi.nieme] In case someone missed this one (or I missed the note about someone not

11595 [pdown@au ti ] ...
11630 [jdf@po ox co] Sockets are currently broken under Windows 2000 at least; they may be
11640 [erne@po er a] I'm running ruby 1.6.2 on Windows 2000 and on Windows NT service pack 4.
11656 [jdf@po ox co] I was unable to compile Ruby using the MS tools.  How did you manage?
11662 [pdown@au ti ] I uninstalled the InstallSheild version and pulled down the source

Re: (Im)mutable Time (was: Time without seconds(updated/fixed))
11598 [sent@qu li y] Ok. I still don't really understand how any real
11655 [matz@ze ab t] I don't have strong objection about making Time mutable.

IDE for ruby
11599 [march_c@ep t] I am new to ruby and I want to know where could I have an IDE for Ruby.

11604 [johnt@ms gl ] ...
11609 [Dave@Pr gm t] This is code that normally runs under control of a web server. As part
11612 [johnt@ms gl ] what do you mean by embedded Ruby??

Re: Data::Dumper
11605 [matju@sy pa ] Do you wish to have an equivalent to Data::Dumper in Ruby?
+ 11607 [dblack@ca dl] If you're looking for opinions overall, I would certainly love
+ 11608 [john_van_v@y] I would be very intested, in fact it would be crucial for perl-ruby migration.
  11611 [Dave@Pr gm t] Perhaps an idea would be to make the code that actually formats the
  + 11615 [ben_tilly@ho] I would find that very nice if it was able to handle
  | 11617 [aleksi.nieme] Yes I do. And pluggableness would be a great thing. As would be a good
  | + 11622 [john_van_v@y] Glad to see everybody is on board.  Data::Dumper is basically my life blood.
  | + 11651 [maki@in c. o] It's source is
  + 11618 [matju@sy pa ] I don't intend to write a C version at all for now. I also won't approach
    11620 [ben_tilly@ho] I have before dumped Perl data structures into
    11621 [ben_tilly@ho] Pretty much what I was thinking of.  Also consider
    11628 [elderburn@mi] Yes, but ...

some weird eval behavior
11626 [dblack@ca dl] This question grows out of playing around with a question from Clemens W.,
11665 [decoux@mo lo] This has nothing to do with #eval, try
11682 [dblack@ca dl] But I still don't understand the asymmetrical behavior:.
11683 [decoux@mo lo] Sorry,
11684 [dblack@ca dl] Yes.  Though you wouldn't know it from this.  Groan.

ri v0.3
11629 [Dave@Pr gm t] Thanks for all the feedback. I've just put up ri v0.3, which now ships
11797 [zawrotny@ge ] I'd like to add a "me too" about how helpful a tool this is.  One

11631 [clpoda@ya oo] subscribe C. Poda

SV:  jEdit for Ruby
11632 [dennisdecker] Just got downloaded it to check it out. It looks promising. And now my

RCR: shortcut for instance variable initialization
11633 [Dave@Pr gm t] I'm sure this will break all sorts of stuff, but just in case it
+ 11639 [matju@sy pa ] I agree with that change.
| 11652 [mdavis@se ai] I like it!
| 11653 [matz@ze ab t] I don't.  I feel it makes the meaning of method arguments ambiguous.
| + 11654 [sent@qu li y] Hmmmmmm. I can see the value for the initialize
| | 12257 [matju@sy pa ] I know. I was just observing that it happened that with that feature there
| + 11657 [Dave@Pr gm t] But
| | 11660 [avi@be a4 co] How about something that'll generate the initializers for you - so that
| | 11663 [avi@be a4 co] class Class
| + 11659 [decoux@mo lo] It seems, but with |@i| this a multi-assignement (NODE_MASGN) and this is
| | + 11661 [Dave@Pr gm t] Clearly so, but ignoring the current implementation, from the outside
| | + 11664 [decoux@mo lo] You have forgotten :-)
| |   11666 [Dave@Pr gm t] No, I hadn't forgotten local variables. I was simply pointing out that
| + 11675 [jmichel@sc u] I do not understand exactly the nature of the objections. It seems to me
|   11738 [matz@ze ab t] It is what Dave wanted, yes.  I personally feel like that method
+ 12031 [r2d2@ma .a c] I do not like the idea. Adding magic just to save typing is only a good
  + 12035 [Dave@Pr gm t] I agree it isn't pretty, and that the idea is probably dead. But let
  | + 12042 [dblack@ca dl] class Msg
  | | 12051 [joe@vp p. et] def blah(name@, type$, txt)
  | | + 12052 [ben_tilly@ho] Well if not duplicating the names is the point, you could
  | | | 12059 [crippel@pr m] As usual,
  | | | 12060 [Dave@Pr gm t] There is no such method as '@will_be_rounded='.  The attr_accessor
  | | | 12063 [crippel@pr m] Besides that,
  | | | 12066 [crippel@pr m] I am afraid I was not very clear,
  | | | 12070 [sent@qu li y] I'm ok with that approach, but personally would
  | | + 12055 [dblack@ca dl] I wouldn't advocate anything like this for global variables.
  | + 12047 [aamine@dp u-] This is not sufficient?
  |   12049 [Dave@Pr gm t] It's clever, but I think it hides the programmer's intention. One of
  + 12200 [matju@sy pa ] You can already write proc {|@a,@b,@c|}. Do you think that feature
    12226 [r2d2@ma .a c] proc {|(a,b),c[2]|}
    12288 [jmichel@sc u] Maybe that is my Cartesian (I am a French mathematician) leanings, but

automatic method creation
11634 [johann@ph si] How would I write a function to create additional methods in a
+ 11635 [Dave@Pr gm t] You just did :)
| 11667 [johann@ph si] Very nice.  Could you perhaps explain the %{ } form?  I don't know
| 11669 [Dave@Pr gm t] Ruby has a set of general delimited thingies (strings, regexps,
| 11711 [johann@ph si] Oh, I see.  I missed the fact that %{ ... } was the same as %Q{ ... }.
+ 11636 [joe@vp p. et] Does this work for you?

Introducing the Ruby Cookbook
11641 [colin@we g2 ] I am proud to introduce my own humble addition to the growing
11644 [chadfowler@y] Interestingly, rubygarden.org is also being created by

memory use and "load"
11642 [jjthrash@po ] It seems as though the 'load' command loads the file as any good
11668 [decoux@mo lo] Try
11735 [matz@ze ab t] Oops, it will be silightly better in 1.6.3.

capturing regex matches.
11643 [joe@vp p. et] if ((command) = part =~ /#{@pre}\s*(.*?)\s*#{@post}$/s)
11646 [dblack@ca dl] command = /#{@pre}\s*(.*?)\s*#{@post}$/s.match(part)[1]
+ 11676 [dblack@ca dl] The only thing is... I now realize, it won't work if there's
+ 13168 [gnhurst@hu s] if command = /#{@pre}\s*(.*?)\s*#{@post}$/s.match(part)
  13169 [avi@be a4 co] if ((command, junk) = /#{@pre}\s*(.*?)\s*#{@post}$/s.match(part))

assert() library in Ruby?
11647 [ristad@mn mo] How can I achieve the effect of the assert() macro from C in Ruby?
11649 [Dave@Pr gm t] DEBUG = false  # or true
11677 [   xm@w3 .r ] /skipped/
11681 [Dave@Pr gm t] Well, if brevity trumps clarity,
+ 11685 [   xm@w3 .r ] Don't want to start a flame ;), but clarity of my example is better ;))
| 11693 [ben_tilly@ho] DEBUG = false # or true
| 11697 [Dave@Pr gm t] Excellent point.
+ 11725 [nickb@fn rd ] def assert;DEBUG&&!yield&&raise('assertion failed');end if brevity>clarity

Putting methods in arrays
11648 [lists@th or ] I'm looking to put a method in an array, to be called at a later time.
11650 [Dave@Pr gm t] You've got lots of options.
+ 11658 [atm297s@sm u] And you certainly gave them to me!  Thanks so much for your assistance.
+ 11689 [zawrotny@ge ] [snip Dave's 4 ideas]

ANN: advice.c
11670 [avi@be a4 co] Another addition to the various metaprogramming tools around (just looked

Re: What is `p'
11672 [max@ma va co] Excuse me, what is p?

11673 [shinichi@to ] Dear listers,
11737 [sent@qu li y] ruby -r debug yourfile.rb

small ri patch
11674 [feldt@ce ch ] Since ri now supports abbreviations via prefix matching we should be able
11688 [Dave@Pr gm t] Thanks
11755 [feldt@ce ch ] I was thinking specifying a very simple text format that can output the

How to implement each method
11678 [max@ma va co] class Packages
11679 [   xm@w3 .r ] /skipped/
11680 [decoux@mo lo] You can write something like this
11690 [max@ma va co] Thanks, it works.
11691 [wmwilson01@h] def each
11692 [wmwilson01@h] I'm left wondering what you're exactly trying to accomplish.  Maybe you just

The Cookbook and Dave
11686 [bryan_zarnet] Is there anyone copying some of Dave's responses into
11687 [dblack@ca dl] 2. I've already posted a supposed improvement to the regex example,

XML format of Programming Ruby
11694 [maki@in c. o] I read ri's data and XML'ed Programming Ruby, and I discovered
11698 [Dave@Pr gm t] No.. the XML is _very_ strange...  :)

trial balloon: A cute name, like balloon ??
11696 [john_van_v@y] Cant hurt, reminds me of led zeppelin

String#delete! question
11699 [dblack@ca dl] OK, in spite of having fallen into the equivalent of the class Unix
+ 11701 [decoux@mo lo] Probably a bug, #delete! use a C char[] variable which is not initialized
+ 11741 [matz@ze ab t] It's because delete! accessing uninitialized table of deleting

Starting Once Again
11700 [ronjeffries@] OK, I'm starting again with Ruby. I'm just assuming that I've
+ 11702 [noel.rappin@] Ron Jeffries queried..
+ 11709 [Dave@Pr gm t] I suppose xemacs is out of the question?
| 11722 [ronjeffries@] I suppose it shouldn't be ... but then I'd have to learn xemacs too,
| + 11728 [thlai@ma l. ] not really, but quite close.  In (X)Emacs you can use
| + 11734 [jweirich@on ] There is gemfinder in the RAA.  It shows only class, module and method
+ 11710 [dfan@ha mo i] Read the 'Embedded Documentation' chapter in PROGRAMMING RUBY, online
| + 11720 [ronjeffries@] I do own it, a signed one. Even looked into the index for RDtool.
| + 11730 [jdf@po ox co] Have you not run into the problem of syntax-coloring being confused by
|   11782 [dfan@ha mo i] I have not... okay, now I have :)
|   11827 [jdf@po ox co] I have since (based on off-list advice) retrieved the ruby-mode from
+ 11712 [aaron@cy er ] I think Ruby is a perfect language to teach test first programming.  Since
| 11726 [  zak@al .c ] let me sidetrack a bit but there's an utility which comes with RUnit
| + 11727 [schneik@us i] # I use gvim with the ruby.vim file installed to enable syntax
| | 11754 [aaron@cy er ] Done... well, at least started.
| | 11766 [ronjeffries@] Is there an entry to rubygarden that will point us to these goodies?
| | + 11768 [feldt@ce ch ] Not sure what you mean but you can find the top page at
| | + 11777 [chadfowler@y] Ron, try http://www.rubygarden.org/ruby for the top
| | + 11779 [aaron@cy er ] I believe that I am fumbling in the dark with you.  A good half hour or so
| | | 11780 [Dave@Pr gm t] You can find out where a page is linked by clicking on its title.
| | + 11795 [gsemones@pr ] From the main page (http://www.rubygarden.com/ruby) is a link to
| + 11743 [aaron@cy er ] Thanks Aleski,
|   11750 [barry_shultz] In case you want a TextPad Ruby syntax file, you can get it at
|   11765 [ronjeffries@] Cool. It couldn't be worse than the one I hacked up. Thanks!
+ 11715 [chadfowler@y] What editor do you feel most comfortable with?  I
| 11723 [ronjeffries@] As a Smalltalk guy, I don't like ANY editor. TextPad works OK. I could
+ 11920 [masaki.suket] RubyWin does not support test-first programming with RubyUnit.

looping, need to execute something only once
11703 [wmwilson01@h] My brain is fried, and I can't think of how to do this (sorry if I don't

Beginners problem using ruby/tk on Linux
11706 [hubert.stigl] I get a problem using module Tk on Suse Linux 6.2

SV:  Starting Once Again
11713 [dennisdecker] I've been using RubyWin so far, but have also used TextPad before with

11716 [jjthrash@po ] Is there a way to alias a class method for a class variable's
11717 [Dave@Pr gm t] Perhaps the delegation library does what you want. Have a look at
11718 [jjthrash@po ] Thanks!  That's exactly what I need.

"Programming Ruby" as Debian package
11719 [oliver@fa er] In hope that this news post is relayed to the mailing list, i would like to
11721 [ben_tilly@ho] This reminds me of something interesting.

Interfacing with Java (sort-of)
11729 [schneik@us i] Is anyone familiar with low-level aspects of Java internals and whatever
11731 [ben_tilly@ho] I am not familiar with Java's internals, but here is a
11733 [rread@da ar ] agreed.

Subclasses of a Class?
11736 [ronjeffries@] I'm wanting to set up RubyUnit to automatically run all the suites of
+ 11740 [avi@be a4 co] class Object
+ 11742 [Dave@Pr gm t] You can add support to RUNIT::TestCase using the 'inherited' method
| + 11817 [ronjeffries@] If I do this ...
| + 11818 [ronjeffries@] Ah, got it. got to use
+ 11746 [wys@he bl ng] $subclassesOfTestCase = []
+ 11764 [ronjeffries@] Thanks, gang. I had figured out the ObjectSpace approach on the way to
  + 11767 [  ddj@km .d ] Is
  + 11773 [Dave@Pr gm t] Good question. 'inherited' happens to be an informational callback,