38772-43039 subjects 39169-39950

outputting method name
38976 [normsu@sl b.] Is there a way to output the current method's name?  for example,
+ 38978 [pbrannan@at ] require 'rbt/hacks/call_stack'
+ 38979 [matz@ru y- a] Retrieve the method name from "caller" output.
  38981 [normsu@sl b.] Thanks for the answers!  Just what I needed.

38982 [cparrish@co ] Does ruby work with glade at all? I guess what I'm asking is, is there a
+ 38989 [jjenning@st ] glad you asked! :)
+ 38998 [pbrannan@at ] There are examples in the tarball.
  39011 [cparrish@co ] Thanks,

appending methods to class inside module
38983 [ian@ca ib n.] module Dog
38985 [edsin@sw s. ] That's right, you define String class under Dog namespace - its fully
39008 [ian@ca ib n.] Ah, OK. I was confused about the namespace issue.
39062 [cjs@cy ic ne] You want to do something along the lines of "friend" in C++, but
39063 [ian@ca ib n.] The protected method was in class String and the method call was made
39170 [edsin@sw s. ] You should judge your right on calling someone's methods depending on

Problem? USENET NEWS split
38987 [m.rokos@sh c] it seems that NEWS-rubytalk GW is broken. Last MSG from
38992 [matz@ru y- a] Probably something happened to Dave Thomas' site, while he's out for
39012 [Dave@Pr gm t] "Something happened" is something of an understatement. I'm still

[Patch] Macros #4
38988 [m.rokos@sh c] you must already hate me, but this could be really final patch
+ 38990 [nobu.nokada@] This doesn't work since stack_end cannot be seen after
+ 38991 [matz@ru y- a] Not at all, rather if you stop helping me, I would be disappointed.
  38993 [m.rokos@sh c] 1 chunk from patch has been found by Nobuyoshi Nakada as
  38994 [matz@ru y- a] Thank you.  They will be merged.

String#pred (long) (was: Numberic#prev)
38999 [pit@ca it in] implementation of String#pred

$_ if no |var|
39001 [kgergely@ml ] Is it possible to use $_, if you don't specify variable for a block?
+ 39002 [decoux@mo lo] Well, you have in the ToDo
+ 39004 [larsch@cs au] I too miss this sometimes, especially when I chain methods, the |n|
  39090 [jean_hugues_] Very nice indeed. When is binding resolved, compile or run time ?
  + 39164 [dblack@ca dl] Have you chosen a name for this new language? :-)
  + 39205 [jean_hugues_] about "proc { if |a| then |b| else |c| end }, what does that means ?"
    39208 [dblack@ca dl] It's actually p[2] that's getting eval'd, so I think it would be more
    39210 [larsch@cs au] I think you are right--I think I would 'expect' all assignments to be
    + 39211 [dblack@ca dl] I honestly don't think this syntax can scale beyond trivial cases.
    + 39222 [hal9000@hy e] I agree with Lars, but I have misgivings about this construct
    + 39255 [jean_hugues_] This makes sense. The definition of the || construct would then be

class variable & file reloading
39005 [jean_hugues_] While debugging my code I often reload a ruby source file after a small
+ 39006 [pbrannan@at ] class Foo
+ 39007 [matz@ru y- a] def MyClass

threads and win98
39009 [kgergely@ml ] Threads under windows 98 doesn't seem to work properly.
39010 [nobu.nokada@] Threads with select work for only sockets under Windows.

[Patch] Macros #4
39013 [m.rokos@sh c] you must already hate me, but this could be really final patch

a small ruby for embedded applications
39015 [mattmsykes@y] I'm putting together a stripped-down version of ruby aimed for use in
+ 39016 [mwg@fl ff .i] Is not it possible to build Ruby on Linux on PlSt-2 ?
| 39026 [mattmsykes@y] It may or may not be possible; I'll know in a few days.  Ruby won't
+ 39092 [dennisn@pe n] I'm sorry I don't know the answer to your specific question.  Just
  39129 [mattmsykes@y] The reason for taking out the regular expressions is because I need
  39165 [matz@ru y- a] No.  Linking a GPL library will make your source code to be opened,
  + 39172 [mattmsykes@y] You are right, I forgot about that part.  But practically speaking,
  + 39298 [dennisn@pe n] Thanks for the clarification.  Do you kno what "Micro Ruby" on the

RubyGarden down?
39017 [kentda@st d.] Or am I the only one who can't get to it?
+ 39022 [nutate@on bo] Supposedly (according to WorldCom support) there was a train wreck in
+ 39031 [Dave@Pr gm t] The server, which runs both the DNS and the web site, got seriously

getting reference to calling object
39018 [mrp@cr .c no] is there a way of getting a reference to the object that called the
39095 [chris@cm -e ] "self", perhaps?
39098 [ned@bi e- om] No, self is the receiver of the current method, not the sender.
39099 [chris@cm -e ] Of course.  I really have to learn not to post when I'm only half awake.

NEWS gateway is down!
39021 [m.rokos@sh c] it seems that ruby-talk <=> USENET gateway is down as well as
39032 [Dave@Pr gm t] It should be back now (it went down when my DNS died, but I've hacked

strerror in Ruby?
39023 [rschmidt@xm ] Is there a way to get an error message for an errno in Ruby. I'm looking for
+ 39027 [sean@ch tt n] $stderr.puts "bad things go bump in the night"
+ 39037 [nobu.nokada@] Raised exceptions from syscalls have message, isn't it good
  39105 [rschmidt@xm ] I'm calling system to copy some files, which only return true or false and
  39146 [sean@ch tt n] out = `cp file1 dir2/file1`

require 'aDir'
39025 [patrick-may@] Has this been discussed in the past?
+ 39036 [nobu.nokada@] It looks overdone.
| + 39049 [matz@ru y- a] Agreed.  aDir.rb along with aDir directory will suffice.
| + 39056 [patrick-may@] the idea, or the example?
|   39060 [nobu.nokada@] The idea itself.
|   39166 [patrick-may@] Oh well.  I got tired of updating the aDir.rb file in a project I'm
+ 39066 [kentda@st d.] Not really supporting that the idea gets into the language, but if it
| 39088 [matz@ru y- a] It loads "aDir.rb".  So
+ 39067 [tsiivola@cc ] require 'foobar'	# foobar.so, foobar.rb and directory foobar

Slow updates in Ruby/Tk
39028 [harryo@zi .c] I'm still a relative Tk neophyte, so my apologies if this is
39045 [nagai@ai ky ] Is Tk.update not enough?

Ruby as a "sh" sucessor language
39033 [gregb@la er ] I'm interested in using ruby as a super replacement for "sh" scripts.
39034 [pate@ey er a] Benjamin,
39132 [gregb@la er ] I did, and ordered a copy. Thanks. According to customer

how to check for unitialised class variable?
39038 [ian@ca ib n.] irb(main):006:0> class Foo
+ 39039 [dblack@ca dl] I think I'm on safe ground here, because I'm cutting-and-pasting
+ 39040 [vjoel@PA H. ] @@foo = true unless defined? @@foo
  39041 [ian@ca ib n.] Thanks Joel and David. I'd already tried something similar, but hadn't

Small patch for ruby,vim syntax highlighting file
39046 [brailsmt@ya ] ...
39141 [jeff.gray@in] Excellent.  While you're at it, would you consider finding a fix to
39150 [brailsmt@ya ] Does anybody know of any other highlighting errors with ruby.vim?  I
39151 [sean@ch tt n] Emacs has syntax highlighting that (gets all wonkey when you use
39154 [brailsmt@ya ] Emacs has a dishwasher and kitchen sink too...

A Wild Idea: What do you think?
39047 [jim@fr ez .o] I have had an idea come to me on more than one occasion.
+ 39051 [xlucid@us rs] Wow - you even need a fix while you're on holiday!
+ 39079 [pate@ey er a] Ooh, this is a terribly cool idea.  I'd actually thought about something
| 39114 [hal9000@hy e] Yes, it's a cool idea... via chat or something, maybe we could even
| + 39117 [pate@ey er a] Ruby Beach is a nice (secluded) beach on the pacific, mostly sand, a
| | 39200 [ptkwt@sh ll ] If you've never been to the Olympic Peninsula you probably cannot
| | 39203 [pate@ey er a] Okay, so I understated it a bit ... 'You will be awash in plants on your
| | 39209 [vjoel@PA H. ] I'd be interested in that. My parents live on the north coast of the
| | 39212 [pate@ey er a] Okay, I just put together http://www.rubygarden.org/ruby?RubyGatherings
| + 39119 [dblack@ca dl] OK, then let's have it in Texas.  How about August?  Oh, what do you
|   39121 [jim@fr ez .o] Go Greyhound!
|   + 39122 [chris.morris] I'll still be living in TX when August rolls around, so as long as it's in
|   | 39123 [jim@fr ez .o] I may have to schedule a visit to TX in August.
|   | + 39126 [xlucid@us rs] area)
|   | + 39176 [pate@ey er a] Would it be worth considering holding multiple ruby gatherings in
|   |   + 39177 [dblack@ca dl] Maybe worth considering, but I guess my reservation is that the more
|   |   | + 39185 [james@ru yx ] <snipMuchStuff/>
|   |   | | 39237 [NoReply@No e] Should we count this as a vote for Phoenix, then? :-)
|   |   | | + 39245 [james@ru yx ] Sedona would be a great choice, and not just because I can drive there in 2
|   |   | | + 39248 [carlom@sp in] I vote for Phoenix too!
|   |   | |   39249 [dblack@ca dl] Someone in the Phoenix branch might want to add something to the wiki
|   |   | |   39250 [james@ru yx ] OK, done.
|   |   | + 39199 [tobiasreif@p] I think both are great ideas (which don't collide in any way).
|   |   + 39187 [jim@fr ez .o] I think this idea has merit. I agree with Dave on not limiting
|   |     + 39189 [jim@fr ez .o] Ruby Coding Retreat (RCR)  :)
|   |     | 39192 [pate@ey er a] ohh, now that has class.  This one trumps my previous favorites.
|   |     + 39191 [pate@ey er a] I think we're approaching the point that we need a wiki page.  Anyone up
|   |     + 39266 [xlucid@us rs] This is exactly the area I'm looking to work in.
|   |     + 39267 [xlucid@us rs] Ruby Cutters ?
|   + 39125 [xlucid@us rs] Oh, I'd recommend the Sweetwater Bar & Grill in Denton (a
+ 39081 [dblack@ca dl] There's been talk in the past of "Ruby camps".  I think it's a great
| 39096 [chris@cm -e ] <Pine.LNX.4.30.0204260859150.10646-100000@candle.superlink.net>,
+ 39082 [elanthis@aw ] What about those cruises they offer?  I've seen adds.. something like
  39086 [jim@fr ez .o] I think it would be fun to go to a 'fun' place, but the super geek

SD Expo (Re: Problem? USENET NEWS split)
39050 [matz@ru y- a] Too bad.

Help learning Ruby
39052 [david@my h. ] Oreilly "Ruby in a nutshell", but cant make heads or tails of how to
+ 39054 [lucid@co ne ] The 'Pickaxe' Ruby book comes with the Windows installation package of
+ 39055 [lucid@co ne ] Okay, the less immediate, but more informative,  response.
| 39135 [david@my h. ] I looked at the online version, and they still don't explain how to do the
| + 39137 [hal9000@hy e] Are you on Windows, by any chance?
| + 39140 [james@ru yx ] There are a few ways to execute Ruby programs.
| + 39147 [jlj@cf rc co] under the heading "Running Ruby", the authors describe different ways you
|   39197 [david@my h. ] Yes! irb thankfully works on unix, and it's great. Interactivity is a must
|   39206 [chris@cm -e ] It's also nice for learning what doesn't have a return value in a
+ 39061 [tobiasreif@p] here are some links that helped me getting started

Configuring Apache (Win) to use RubyWin for CGI
39057 [lucid@co ne ] Preamble

Illogical proc argument binding
39059 [ekarttun@cs ] def foo
39084 [matz@ru y- a] Try

Parsing Repeating Regexp Matches
39069 [cjs@cy ic ne] ["foo", "bar", "something else", "and so on"]
39071 [brailsmt@ya ] Try String#scan.  It is similar to te g options in sed/vim/perl's s///,
39072 [cjs@cy ic ne] Ah, that's it. So I want
39075 [dblack@ca dl] parsed_defs = defs.scan(/\{(.*?)\}/).flatten

German Translation of Programming Ruby
39070 [juergen.kati] I would like to announce the free online version
+ 39074 [dsafari@xt a] I can't read German so I can't look over your fantastic effort. I'm sure it
+ 39077 [kentda@st d.] Nice work.

newbie: embedding ruby and garbage collection
39073 [gaiacrtn@fr ] I started learning ruby and I'm trying to use it from one of my C++
39106 [decoux@mo lo] Rather than register a callback, you can  just create an object (with
+ 39111 [pbrannan@at ] Will this also work with normal objects that are visible from Ruby?  It
| 39112 [decoux@mo lo] Why fewer object ?
| 39113 [pbrannan@at ] Hmm, now that I think about it, the object being held still has to be
+ 39173 [gaiacrtn@fr ] Thanks. After looking at Data_Wrap_Struct implementation, I saw that the
  39378 [gaiacrtn@fr ] While struggling with some bugs that appeared during GC, I found the

어린이날 BEST 추천상품 (광고)
39076 [dhl660717@ly] ...

39078 [kenta@ib st ] Thanks!!!

expand_path and overlap
39080 [chris.morris] I'm wanting something similar to expand_path, but that will detect overlap.
39085 [dblack@ca dl] collapse_path("b/c/f", "/a/b/c/d/e/b/c/g/h")
39087 [chris.morris] /a/b/c/d/e/b/c/f
+ 39091 [nobu.nokada@] I'm not sure, is this like what you want?
| + 39100 [chris.morris] Thanks! It seems to be close -- though I haven't groked it myself to see
| | + 39107 [nobu.nokada@] Hmmm, it apparently passes.  Only 4th test failed.
| | | 39108 [chris.morris] 1.6.6
| | | 39331 [nobu.nokada@] I got it.  Modify base.rindex to base.index.  Anyhow,
| | + 39109 [pit@ca it in] On 27 Apr 2002, at 0:20, Morris, Chris
| |   39110 [chris.morris] At the risk of overwhelming this thread into oblivion ... I've compiled all
| |   39116 [decoux@mo lo] Well,
| + 39101 [pit@ca it in] Here are two other implementations (using only the basic regular
+ 39102 [decoux@mo lo] Well, try this

Return last match instead of first?
39083 [chris.morris] 'abcdefabc' =~ 'abc' returns 0
+ 39089 [matz@ru y- a] p "abcdefabc".rindex(/abc/)  #=> 6
+ 39093 [bobgus@mc .n] a = 'abcdefabc'

RFC: File.join removing redundant /'s
39094 [mrp@cr .c no] ruby 1.6.6

RE: File.join removing redundant /'s
39097 [stathy.toulo] /foo/bar/baz
+ 39103 [eban@os ri .] % ruby -e 'p File::expand_path("/foo//bar//baz")'
+ 39104 [decoux@mo lo] pigeon% ruby -e 'p File::expand_path(File.join("/foo/","bar/","baz"))'

[ANN] Cherry Blosxom 0.1.5
39115 [nutate@on bo] I have recently released Cherry Blosxom 0.1.5 to the world.  It is
39175 [decoux@mo lo] Well, I know nothing about weblog but I've not understood why you use

SemiOT: Cherry Blosxom and blogs in general
39118 [hal9000@hy e] Since Cherry Blosxom was just posted, I thought
39128 [nutate@on bo] Let's look at blogging... What is the definition of blogging?  (I really
39136 [hal9000@hy e] [snippage]

desktop applications in Ruby
39120 [winsim@wi si] Is anyone developing / selling a desktop application written in Ruby ?

extending ruby: defining method with default parameters value...
39124 [gaiacrtn@fr ] rb_define_method( ruby_cScintillaBase,
39167 [vjoel@PA H. ] You can use rb_scan_args. See the "Extending Ruby" chapter of the
39174 [gaiacrtn@fr ] value...

CORBA on Ruby?
39130 [jlj@cf rc co] Does anyone have a handle on the state of things with respect to Ruby/CORBA
39131 [pbrannan@at ] I got Rinn working, sort of, with some very basic CORBA code.  However,
39138 [jlj@cf rc co] I will keep this solution in mind, although I'm still holding out hope for a
39143 [pbrannan@at ] Most of the time, it's just a matter of determining how to convert the

mod_ruby with mod_ssl segfault the problem and the soluction
39133 [domingo@da -] Recently I've installed mod_ssl in my apache webserver that is runing
39148 [sean@ch tt n] This is a known problem that has been fixed.  If you upgrade ruby you

SOAP4R question
39134 [Mark.Volkman] ...
39139 [andrew_queis] ...

TCL interpreter in Ruby?
39142 [craig_files@] I am currently in the middle of a TCL user base and I want out!
39270 [nagai@ai ky ] Please read TkCore module and TkVarAccess module on tk.rb.
39337 [nagai@ai ky ] Sorry. That was not so good script.
39393 [craig_files@] Thanks,  I have been playing with this all day and have made some
39396 [Ephaeton@gm ] Don't output $! then, but access the tcl variable errorInfo.
39398 [craig_files@] Thanks.
39400 [nagai@ai ky ] Please use TkVarAccess class. For example,

39144 [qute@kl g. k] I cannot complete the surway.
+ 39158 [Dave@Pr gm t] I'm working on it - RubyGarden is slowly coming back to life... :)
+ 39159 [Dave@Pr gm t] The survey's back online, as is the weblog, the wiki, and Ruby Weekly

Ruby and PalmOS
39145 [mnorton@ot k] I recently read an article on Ruby in Linux Magazine and have since done
39355 [mmaciaszek@g] According to the PalmOS documentation PalmOS has only very limited
39359 [mnorton@ot k] Well it's be a fun project.  The main issue is time (as it always is).

Re: OT  Small patch for ruby,vim syntax highlighting file
39163 [michael_s_ca] This is your issue; you think emacs is an editor.  Yes, it also