Hello fellow rubists,
Thanks to our wonderful Shugo, there is now RSS feed and a commit bot for
the cvs. Each time there is a cvs commit, the scripts send information to
the correct server for processing. The IRC bot messages the channel each commit
for the Ruby CVS. Which is interesting, and hopefully messages can be even more
improved with color tags in the XML which is sent.
The RSS Feed:
http://cia.navi.cx/stats/project/ruby/.rss
*created as an side-effect of settng up the CIA bot*
The IRC bot:
The bot can be found in #ruby-talk on Freenode
irc://irc.freenode.net/ruby-talk
dross
Thanks to our wonderful Shugo, there is now RSS feed and a commit bot for
the cvs. Each time there is a cvs commit, the scripts send information to
the correct server for processing. The IRC bot messages the channel each commit
for the Ruby CVS. Which is interesting, and hopefully messages can be even more
improved with color tags in the XML which is sent.
The RSS Feed:
http://cia.navi.cx/stats/project/ruby/.rss
Very nice. One gripe:
Content-Type: text/html
is not the correct content type for an RSS feed. text/xml would be better.
Thanks,
James
Is there a way to get the name of the symbol passed to a method?
e.g.
def geterdone(array)
# funkify array- but I want to know name of original symbol, not
array, and prefix each element with it
newarray=array.select(...){...}
end
oldarray=[val1, val2, ...]
newarray=geterdone(oldarray)
# newarray is now ["oldarray:val1", "oldarray:val2", ...]
Thanks,
Nick
Is there a way to get the name of the symbol passed to a method?
e.g.
def geterdone(array)
# funkify array- but I want to know name of original symbol, not
array, and prefix each element with it
newarray=array.select(...){...}
end
oldarray=[val1, val2, ...]
newarray=geterdone(oldarray)
# newarray is now ["oldarray:val1", "oldarray:val2", ...]
Not without one of the parse-tree hook extensions, I would think. And
even then, what would you expect to happen here?
newarray = geterdone([val1, val2, ...])
Thanks,
Nick
Sam
···
On Sun, 5 Dec 2004 01:14:57 +0900, Nicholas Van Weerdenburg <vanweerd@gmail.com> wrote: