11501-13169

11291-14137 subjects 11739-12280

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

^ ANN: ri - the Ruby Interactive reference
11511 [Dave Pragmat] 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 Pragmat] That means I'm going to have to find a different way to store the
| + 11530 [Dave Pragmat] 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 pobox.co] Did the trick!
+ 11516 [jdf pobox.co] Thank you!  Unfortunately, the distro as it currently stands is
| 11522 [harryo zipwo] The classes with embedded colons don't seem to work for me on Redhat
| 11525 [harryo zipwo] I changed the main code in "ri.rb" to the following and it now seems
| 11526 [harryo zipwo] Of course, I should have said that with this change, you have to use
+ 11551 [harryo zipwo] Just out of interest, Dave, does ri handle inherited methods?
  11562 [Dave Pragmat] ri currently contains just the method listing from the pickaxe book

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

^ vim macros for ri
11532 [eventi nyic.] 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 Pragmat] I'm looking for some inspiration.
+ 11582 [maki inac.co] I tried ri. My impression: Cool!
| 11594 [ben_tilly ho] Yes.  Use ruby as your parser.
| 11597 [sent quality] How complex is your XML? As I mentioned, I was
+ 11601 [spwhite char] 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 helbling] Is there a way to protect a class (module) so that it can be extended

^ clone'ing a binding (context)
11579 [wys helbling] 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.cha] Dear Dave,
11623 [harryo zipwo] 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 candl] 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 char] 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

^ Net::FTP
11595 [pdown austin] This is a multi-part message in MIME format.
11630 [jdf pobox.co] Sockets are currently broken under Windows 2000 at least; they may be
11640 [erne powerna] I'm running ruby 1.6.2 on Windows 2000 and on Windows NT service pack 4.
11656 [jdf pobox.co] I was unable to compile Ruby using the MS tools.  How did you manage?
11662 [pdown austin] I uninstalled the InstallSheild version and pulled down the source

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

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

^ 
11604 [johnt mssglo] This is a multi-part message in MIME format.
11609 [Dave Pragmat] This is code that normally runs under control of a web server. As part
11612 [johnt mssglo] what do you mean by embedded Ruby??

^ Re: Data::Dumper
11605 [matju sympat] Do you wish to have an equivalent to Data::Dumper in Ruby?
+ 11607 [dblack candl] 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 Pragmat] 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 inac.co] It's source is
  + 11618 [matju sympat] 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 candl] This question grows out of playing around with a question from Clemens W.,
11665 [decoux moulo] This has nothing to do with #eval, try
11682 [dblack candl] But I still don't understand the asymmetrical behavior:.
11683 [decoux moulo] Sorry,
11684 [dblack candl] Yes.  Though you wouldn't know it from this.  Groan.

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

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

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

^ Introducing the Ruby Cookbook
11641 [colin webg2.] 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 pob] It seems as though the 'load' command loads the file as any good
11668 [decoux moulo] Try
11735 [matz zetabit] Oops, it will be silightly better in 1.6.3.

^ capturing regex matches.
11643 [joe vpop.net] if ((command) = part =~ /#{@pre}\s*(.*?)\s*#{@post}$/s)
11646 [dblack candl] command = /#{@pre}\s*(.*?)\s*#{@post}$/s.match(part)[1]
+ 11676 [dblack candl] The only thing is... I now realize, it won't work if there's
+ 13168 [gnhurst hurs] if command = /#{@pre}\s*(.*?)\s*#{@post}$/s.match(part)
  13169 [avi beta4.co] if ((command, junk) = /#{@pre}\s*(.*?)\s*#{@post}$/s.match(part))

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

^ Putting methods in arrays
11648 [lists theori] I'm looking to put a method in an array, to be called at a later time.
11650 [Dave Pragmat] You've got lots of options.
+ 11658 [atm297s smsu] And you certainly gave them to me!  Thanks so much for your assistance.
+ 11689 [zawrotny gec] [snip Dave's 4 ideas]

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

^ Re: What is `p'
11672 [max malva.co] Excuse me, what is p?

^ Greetings
11673 [shinichi tor] Dear listers,
11737 [sent quality] ruby -r debug yourfile.rb

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

^ How to implement each method
11678 [max malva.co] class Packages
11679 [   xm w3d.ru] /skipped/
11680 [decoux moulo] You can write something like this
11690 [max malva.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 candl] 2. I've already posted a supposed improvement to the regex example,

^ XML format of Programming Ruby
11694 [maki inac.co] I read ri's data and XML'ed Programming Ruby, and I discovered
11698 [Dave Pragmat] 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 candl] OK, in spite of having fallen into the equivalent of the class Unix
+ 11701 [decoux moulo] Probably a bug, #delete! use a C char[] variable which is not initialized
+ 11741 [matz zetabit] 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 Pragmat] 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 mail.u] not really, but quite close.  In (X)Emacs you can use
| + 11734 [jweirich one] There is gemfinder in the RAA.  It shows only class, module and method
+ 11710 [dfan harmoni] 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 pobox.co] Have you not run into the problem of syntax-coloring being confused by
|   11782 [dfan harmoni] I have not... okay, now I have :)
|   11827 [jdf pobox.co] I have since (based on off-list advice) retrieved the ruby-mode from
+ 11712 [aaron cybers] I think Ruby is a perfect language to teach test first programming.  Since
| 11726 [  zak ale.cx] 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 cybers] Done... well, at least started.
| | 11766 [ronjeffries ] Is there an entry to rubygarden that will point us to these goodies?
| | + 11768 [feldt ce.cha] 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 cybers] I believe that I am fumbling in the dark with you.  A good half hour or so
| | | 11780 [Dave Pragmat] You can find out where a page is linked by clicking on its title.
| | + 11795 [gsemones pri] From the main page (http://www.rubygarden.com/ruby) is a link to
| + 11743 [aaron cybers] 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

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

^ "Programming Ruby" as Debian package
11719 [oliver faker] 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 datari] agreed.

^ Subclasses of a Class?
11736 [ronjeffries ] I'm wanting to set up RubyUnit to automatically run all the suites of
+ 11740 [avi beta4.co] class Object
+ 11742 [Dave Pragmat] 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 helbling] $subclassesOfTestCase = []
+ 11764 [ronjeffries ] Thanks, gang. I had figured out the ObjectSpace approach on the way to
  + 11767 [  ddj kmd.dk] Is
  + 11773 [Dave Pragmat] Good question. 'inherited' happens to be an informational callback,
threads.html
top