# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md?page=886

[Latest](https://www.ruby-forum.com/latest.md) · [Categories](https://www.ruby-forum.com/categories.md) · [Tags](https://www.ruby-forum.com/tags.md)

**Page:** 887

---

## [What symbol for class methods?](https://www.ruby-forum.com/t/what-symbol-for-class-methods/161593)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 10:02pm UTC](https://www.ruby-forum.com/t/what-symbol-for-class-methods/161593 "2009-02-27T22:02:02Z")

</div>

Hello, some methods require as an argument a symbol of a method (e.g. alias\_method). How can one use it with class methods? Thanks. Diego

---

## [Regression ? "Invalid IL code in (wrapper dynamic-method)"](https://www.ruby-forum.com/t/regression-invalid-il-code-in-wrapper-dynamic-method/161504)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 14\
**Last updated:** [February 27, 2009, 9:07pm UTC](https://www.ruby-forum.com/t/regression-invalid-il-code-in-wrapper-dynamic-method/161504 "2009-02-27T21:07:44Z")

</div>

Hi again, I’m using Mono 2.4 to run the binaries at http://nightlybuilds.cloudapp.net/rss.ashx?project=dlr(DLR.xxxxx.release.zip) (not sure if it supposed to work, but it did until today). Everything I tried worked…

---

## [Xml-simple 1.0.12 released](https://www.ruby-forum.com/t/xml-simple-1-0-12-released/161613)

<div class="topic-metadata">

**Author:** [@Maik\_Schmidt](https://www.ruby-forum.com/u/Maik_Schmidt)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 9:06pm UTC](https://www.ruby-forum.com/t/xml-simple-1-0-12-released/161613 "2009-02-27T21:06:34Z")

</div>

Yo! I have released a new version of XmlSimple (xml-simple 1.0.12) some minutes ago. XmlSimple offers a simple API to read and write XML documents. It is a Ruby translation of Grant McLean’s Perl module XML::Simple. …

---

## [Dynamic variable names or using a variable as another's name](https://www.ruby-forum.com/t/dynamic-variable-names-or-using-a-variable-as-anothers-name/161463)

<div class="topic-metadata">

**Author:** [@bodikp](https://www.ruby-forum.com/u/bodikp)\
**Replies:** 5\
**Last updated:** [February 27, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/dynamic-variable-names-or-using-a-variable-as-anothers-name/161463 "2009-02-27T19:15:41Z")

</div>

Hi- I’ve done some searching on this topic and it seems to be generally discouraged to use one variable’s value as another variable’s name (or part of it’s name). People generally recommend a hash or array to answer …

---

## [Vim for ruby](https://www.ruby-forum.com/t/vim-for-ruby/160410)

<div class="topic-metadata">

**Author:** [@bruparel](https://www.ruby-forum.com/u/bruparel)\
**Replies:** 18\
**Last updated:** [February 27, 2009, 7:13pm UTC](https://www.ruby-forum.com/t/vim-for-ruby/160410 "2009-02-27T19:13:55Z")

</div>

I am using Ubuntu 7.10. I installed vim-ruby package to get the ruby syntax hilighting support, but it is not working. Any ideas? Thanks for your time. Bharat

---

## [Sys-filesystem interface advice](https://www.ruby-forum.com/t/sys-filesystem-interface-advice/161141)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 5\
**Last updated:** [February 27, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/sys-filesystem-interface-advice/161141 "2009-02-27T18:01:44Z")

</div>

Hi, I’m going to add the Filesystem.mount\_point method. It will simply return the mount point associated with the given file. Example: Filesystem.mount\_point(’/home/djberge/foo.txt’) # =\> ‘/home’ (RHEL Linux) My di…

---

## [What symbol for class methods?](https://www.ruby-forum.com/t/what-symbol-for-class-methods/197086)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 6:00pm UTC](https://www.ruby-forum.com/t/what-symbol-for-class-methods/197086 "2009-02-27T18:00:33Z")

</div>

Hello, some methods require as an argument a symbol of a method (e.g. alias\_method). How can one use it with class methods? Thanks. Diego

---

## [What symbol for class methods?](https://www.ruby-forum.com/t/what-symbol-for-class-methods/197224)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/what-symbol-for-class-methods/197224 "2009-02-27T17:58:47Z")

</div>

Hello, some methods require as an argument a symbol of a method (e.g. alias\_method). How can one use it with class methods? Thanks. Diego

---

## [What symbol for class methods?](https://www.ruby-forum.com/t/what-symbol-for-class-methods/196904)

<div class="topic-metadata">

**Author:** [@diego\_v](https://www.ruby-forum.com/u/diego_v)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 5:58pm UTC](https://www.ruby-forum.com/t/what-symbol-for-class-methods/196904 "2009-02-27T17:58:11Z")

</div>

Hello, some methods require as an argument a symbol of a method (e.g. alias\_method). How can one use it with class methods? Thanks. Diego

---

## [Why does Dir#glob("\*\*/\*") miss dot directories?](https://www.ruby-forum.com/t/why-does-dir-glob-miss-dot-directories/161551)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 5:21pm UTC](https://www.ruby-forum.com/t/why-does-dir-glob-miss-dot-directories/161551 "2009-02-27T17:21:01Z")

</div>

I just noticed the Unix find command is a bit more thorough than Dir.glob. The difference is that find looks in hidden directories (.directories), while Dir.glob doesn’t. Here is a demonstration: Tim:~/Desktop/test\> l…

---

## [Ruby in non-existing directory](https://www.ruby-forum.com/t/ruby-in-non-existing-directory/161587)

<div class="topic-metadata">

**Author:** [@Tanaka\_A](https://www.ruby-forum.com/u/Tanaka_A)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 5:12pm UTC](https://www.ruby-forum.com/t/ruby-in-non-existing-directory/161587 "2009-02-27T17:12:47Z")

</div>

e$B%+%l%s%H%G%#%l%/%H%j$,B8:\_$7$J$$$H$-!"e(Bruby -e ‘’ e$B$,0J2\<$N$h$&$K%(%i!\<$K$J$j$^$9!#e(B % cd /tmp % mkdir foo % cd foo % rmdir …/foo % ruby -ve ‘’ ruby 1.9.2dev (2009-02-28 trunk 22669) \[i686-linux\] interna…

---

## [Image/Pattern Recognition](https://www.ruby-forum.com/t/image-pattern-recognition/161575)

<div class="topic-metadata">

**Author:** [@bex3000](https://www.ruby-forum.com/u/bex3000)\
**Replies:** 9\
**Last updated:** [February 27, 2009, 5:10pm UTC](https://www.ruby-forum.com/t/image-pattern-recognition/161575 "2009-02-27T17:10:25Z")

</div>

Hey folks, I have a project I’m trying to work out the feasibility of being able to do - I want to process images that consist of a grid of squares containing symbols, and I want to be able to break down the grid so t…

---

## [Deleting row from CSV](https://www.ruby-forum.com/t/deleting-row-from-csv/141492)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 5\
**Last updated:** [February 27, 2009, 4:53pm UTC](https://www.ruby-forum.com/t/deleting-row-from-csv/141492 "2009-02-27T16:53:54Z")

</div>

I have come code which is looking for a particular number within a CSV row (item no 2). If it finds it, I want it to output the row unchanged - but if it isn’t there, I want it to delete the row entirely. I can’t ge…

---

## [Load Servlet Request Attributes Timeout](https://www.ruby-forum.com/t/load-servlet-request-attributes-timeout/161247)

<div class="topic-metadata">

**Author:** [@rpheath](https://www.ruby-forum.com/u/rpheath)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 4:48pm UTC](https://www.ruby-forum.com/t/load-servlet-request-attributes-timeout/161247 "2009-02-27T16:48:11Z")

</div>

We are getting the following error about a dozen times a day on our site. Has anyone seen anything similar to this or have any suggestions? Thanks Ryan SEVERE: Exception caught file:/opt/apache-tomcat-6.0.18/webap…

---

## [Letter writing campaign to Jim](https://www.ruby-forum.com/t/letter-writing-campaign-to-jim/161471)

<div class="topic-metadata">

**Author:** [@aaronpowell](https://www.ruby-forum.com/u/aaronpowell)\
**Replies:** 15\
**Last updated:** [February 27, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/letter-writing-campaign-to-jim/161471 "2009-02-27T15:34:27Z")

</div>

“Rake version 0.8.4 has been released!” is what you would be reading if we can get Jim to release a new version of Rake. We’ve all put up with this warning, long enough! /Library/Ruby/Gems/1.8/gems/rake-0.8.3/lib/rake…

---

## [JRoR: How to detect deployment in a WAR file programmatically?](https://www.ruby-forum.com/t/jror-how-to-detect-deployment-in-a-war-file-programmatically/161535)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 2:56pm UTC](https://www.ruby-forum.com/t/jror-how-to-detect-deployment-in-a-war-file-programmatically/161535 "2009-02-27T14:56:41Z")

</div>

I need to modify a plugin’s asset installation routines to handle deployment in a WAR file, where there is no “public” directory. So I’m looking for a programmatic way to key on the fact that I’ve deployed via WAR fil…

---

## [JRoR: Unitialized constant ActionController::Session::JavaServletStore error on any dynamic request](https://www.ruby-forum.com/t/jror-unitialized-constant-actioncontroller-javaservletstore-error-on-any-dynamic-request/161256)

<div class="topic-metadata">

**Author:** [@weyus](https://www.ruby-forum.com/u/weyus)\
**Replies:** 7\
**Last updated:** [February 27, 2009, 2:51pm UTC](https://www.ruby-forum.com/t/jror-unitialized-constant-actioncontroller-javaservletstore-error-on-any-dynamic-request/161256 "2009-02-27T14:51:24Z")

</div>

All, Mac OS X 10.6 JDK: java version “1.5.0\_16” Java™ 2 Runtime Environment, Standard Edition (build 1.5.0\_16-b06-284) Java HotSpot™ Client VM (build 1.5.0\_16-133, mixed mode, sharing) Rails 2.3 JRuby 1.1.6 rack…

---

## [Ruby file to Executable file -- for all OS](https://www.ruby-forum.com/t/ruby-file-to-executable-file-for-all-os/159815)

<div class="topic-metadata">

**Author:** [@jazzezravi](https://www.ruby-forum.com/u/jazzezravi)\
**Replies:** 12\
**Last updated:** [February 27, 2009, 2:34pm UTC](https://www.ruby-forum.com/t/ruby-file-to-executable-file-for-all-os/159815 "2009-02-27T14:34:51Z")

</div>

Hi All, I have a ruby script. i converted it into exe with the help of rubyscript2exe gem. But it was working in windows machines only… My Need: I want to run all the Operating systems. is this possible ? (I hope so…

---

## [FileUtils.link and Windows](https://www.ruby-forum.com/t/fileutils-link-and-windows/161499)

<div class="topic-metadata">

**Author:** [@Zachary\_Brown](https://www.ruby-forum.com/u/Zachary_Brown)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 1:34pm UTC](https://www.ruby-forum.com/t/fileutils-link-and-windows/161499 "2009-02-27T13:34:34Z")

</div>

Hi all, Recently a bug was filed (JRUBY-3440) that exposed the fact that FileUtils.link is not implemented on Windows. Currently, Windows versions besides Vista have no implementation of symlinks. They have hard link…

---

## [\[Bug:trunk\] duplicate when clauses raise strange exception](https://www.ruby-forum.com/t/bug-trunk-duplicate-when-clauses-raise-strange-exception/161335)

<div class="topic-metadata">

**Author:** [@Yusuke\_ENDOH](https://www.ruby-forum.com/u/Yusuke_ENDOH)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 10:37am UTC](https://www.ruby-forum.com/t/bug-trunk-duplicate-when-clauses-raise-strange-exception/161335 "2009-02-27T10:37:44Z")

</div>

e$B1sF#$G$9!#e(B e$BJ8;zNs$Ne(B when e$B@a$r=EJ#$5$;$k$H!“2x$7$$Nc30$,$”$,$j$^$9!#e(B $ ruby19 -e ‘case “x”; when “x”; when “x”; end’ ruby19: method \`eql?’ called on terminated object (0x826e0f0) (NotImplementedError…

---

## [Problem with new ruby install and openssl.rb (on Ubuntu)](https://www.ruby-forum.com/t/problem-with-new-ruby-install-and-openssl-rb-on-ubuntu/161517)

<div class="topic-metadata">

**Author:** [@phor\_gruber](https://www.ruby-forum.com/u/phor_gruber)\
**Replies:** 8\
**Last updated:** [February 27, 2009, 10:08am UTC](https://www.ruby-forum.com/t/problem-with-new-ruby-install-and-openssl-rb-on-ubuntu/161517 "2009-02-27T10:08:24Z")

</div>

ruby-talkers, I’ve bumped into an issue with ruby and ssl. I’m trying to run a rake command which aborts because it cannot find openssl.rb. I followed these steps: mkdir /rho; chown phor /rho wget ftp://ftp.rub…

---

## [How to invoke a exe(eg.vlc.exe) using ruby script](https://www.ruby-forum.com/t/how-to-invoke-a-exe-eg-vlc-exe-using-ruby-script/161541)

<div class="topic-metadata">

**Author:** [@sangeeta](https://www.ruby-forum.com/u/sangeeta)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 8:09am UTC](https://www.ruby-forum.com/t/how-to-invoke-a-exe-eg-vlc-exe-using-ruby-script/161541 "2009-02-27T08:09:28Z")

</div>

hi , i m trying to invoke a .exe in ruby script . basically i need to open the beyond compare.exe with 2 arguments as two file names and execute it and get the result i also wanted to call a .bat file in ruby pls he…

---

## [Ruby/Tk: how to get Scrollbar to stay scrolled on non-scroll widget?](https://www.ruby-forum.com/t/ruby-tk-how-to-get-scrollbar-to-stay-scrolled-on-non-scroll-widget/161530)

<div class="topic-metadata">

**Author:** [@chris](https://www.ruby-forum.com/u/chris)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 7:16am UTC](https://www.ruby-forum.com/t/ruby-tk-how-to-get-scrollbar-to-stay-scrolled-on-non-scroll-widget/161530 "2009-02-27T07:16:02Z")

</div>

Hello all, I am trying to get a new grid control working (similar to a TreeView without the tree) and my most recent problem is to get the Scrollbar to respond to the changes it initiates in the grid. I’ve tried a fe…

---

## [Ruby/Tk: how to get Scrollbar to stay scrolled?](https://www.ruby-forum.com/t/ruby-tk-how-to-get-scrollbar-to-stay-scrolled/161531)

<div class="topic-metadata">

**Author:** [@cruby](https://www.ruby-forum.com/u/cruby)\
**Replies:** 1\
**Last updated:** [February 27, 2009, 7:14am UTC](https://www.ruby-forum.com/t/ruby-tk-how-to-get-scrollbar-to-stay-scrolled/161531 "2009-02-27T07:14:21Z")

</div>

Hello all, I am trying to get a new grid control working (similar to a TreeView without the tree) and my most recent problem is to get the Scrollbar to respond to the changes it initiates in the grid. I’ve tried a fe…

---

## [Mswin32's nan\_test is broken by r22579](https://www.ruby-forum.com/t/mswin32s-nan-test-is-broken-by-r22579/161394)

<div class="topic-metadata">

**Author:** [@U.Nakamura](https://www.ruby-forum.com/u/U.Nakamura)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 7:12am UTC](https://www.ruby-forum.com/t/mswin32s-nan-test-is-broken-by-r22579/161394 "2009-02-27T07:12:31Z")

</div>

e$B$3$s$K$A$O!"$J$+$\`$ie(B(e$B$&e(B)e$B$G$9!#e(B e$B2\<5-$NJQ99$G$9$,!"e(Bmswin32e$B$Ge(Bsample/test.rbe$B$Ne(Bnan\_teste$BFb$G\<:GT$7e(B e$B$^$/$k$N$G!“ITMW$J%A%‘%C%/$8$c$J$+$C$?$\_$?$$$G$9!#e(B VC++e$B$G$O=\>Mh$N%A%’%C%/…

---

## [Shell.application.windows doesn't contain IE windows](https://www.ruby-forum.com/t/shell-application-windows-doesnt-contain-ie-windows/161438)

<div class="topic-metadata">

**Author:** [@wallee](https://www.ruby-forum.com/u/wallee)\
**Replies:** 2\
**Last updated:** [February 27, 2009, 5:48am UTC](https://www.ruby-forum.com/t/shell-application-windows-doesnt-contain-ie-windows/161438 "2009-02-27T05:48:33Z")

</div>

Hi, I found a verty strange thing on my machine: when I run the following script, it only shows windows of Explorer, but no internet Explorer window, though I do open an IE window: require ‘win32ole’ shell = WIN32OL…

---

## [Rdoc 2.4.1 Released](https://www.ruby-forum.com/t/rdoc-2-4-1-released/161526)

<div class="topic-metadata">

**Author:** [@miracleofmagick](https://www.ruby-forum.com/u/miracleofmagick)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 4:16am UTC](https://www.ruby-forum.com/t/rdoc-2-4-1-released/161526 "2009-02-27T04:16:16Z")

</div>

rdoc version 2.4.1 has been released! RDoc Project Page http://rubyforge.org/projects/rdoc/ RDoc Documentation http://rdoc.rubyforge.org/ RDoc Bug Tracker http://rubyforge.org/tracker/?atid=2472&group\_id=627&func=br…

---

## [Hoe 1.9.0 Released](https://www.ruby-forum.com/t/hoe-1-9-0-released/161520)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 3:05am UTC](https://www.ruby-forum.com/t/hoe-1-9-0-released/161520 "2009-02-27T03:05:13Z")

</div>

hoe version 1.9.0 has been released! http://rubyforge.org/projects/seattlerb/ http://seattlerb.rubyforge.org/hoe/ removed\_email\_address@domain.invalid Hoe is a simple rake/rubygems helper for project Rakefiles. It ge…

---

## [Rubyforge 1.0.3 Released](https://www.ruby-forum.com/t/rubyforge-1-0-3-released/161518)

<div class="topic-metadata">

**Author:** [@aguynamedryan](https://www.ruby-forum.com/u/aguynamedryan)\
**Replies:** 0\
**Last updated:** [February 27, 2009, 3:01am UTC](https://www.ruby-forum.com/t/rubyforge-1-0-3-released/161518 "2009-02-27T03:01:43Z")

</div>

rubyforge version 1.0.3 has been released! http://codeforpeople.rubyforge.org/rubyforge/ http://rubyforge.org/projects/codeforpeople/ A script which automates a limited set of rubyforge operations. Run ‘rubyforge he…

---

## [Instance Variable Names Available from Class?](https://www.ruby-forum.com/t/instance-variable-names-available-from-class/161455)

<div class="topic-metadata">

**Author:** [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Replies:** 5\
**Last updated:** [February 27, 2009, 2:55am UTC](https://www.ruby-forum.com/t/instance-variable-names-available-from-class/161455 "2009-02-27T02:55:14Z")

</div>

In metaprogramming, I know how to get the instance variable names from an Object (through instance\_variables). Is there a way to get them from a Class?

[Previous page](https://www.ruby-forum.com/c/ruby/7.md?page=885)

[Next page](https://www.ruby-forum.com/c/ruby/7.md?page=887)
