# Ruby

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

[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:** 706

---

## [Ruby Claus](https://www.ruby-forum.com/t/ruby-claus/179264)

<div class="topic-metadata">

**Author:** [@alfred](https://www.ruby-forum.com/u/alfred)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 4:56pm UTC](https://www.ruby-forum.com/t/ruby-claus/179264 "2009-11-20T16:56:06Z")

</div>

Do you have a Ruby Christmas wish? http://rubyclaus.com/ :slight\_smile:

---

## [Rcap 0.2](https://www.ruby-forum.com/t/rcap-0-2/179254)

<div class="topic-metadata">

**Author:** [@Farrel\_L](https://www.ruby-forum.com/u/Farrel_L)\
**Replies:** 1\
**Last updated:** [November 20, 2009, 4:39pm UTC](https://www.ruby-forum.com/t/rcap-0-2/179254 "2009-11-20T16:39:43Z")

</div>

I’m pleased to announce the release of RCAP 0.2. RCAP is a Ruby implementation of the Common Alerting Protocol(CAP). This release is release is aimred at developers and adds YAML generation and parsing support as wel…

---

## [Error: symbol string may not contain \`\\0'](https://www.ruby-forum.com/t/error-symbol-string-may-not-contain-0/179230)

<div class="topic-metadata">

**Author:** [@revenantphoenix](https://www.ruby-forum.com/u/revenantphoenix)\
**Replies:** 3\
**Last updated:** [November 20, 2009, 4:28pm UTC](https://www.ruby-forum.com/t/error-symbol-string-may-not-contain-0/179230 "2009-11-20T16:28:00Z")

</div>

Basically it’s pretty self explanatory. I’m packing the following: \[0x00, 0x07, str1, str2, 0x00\].pack(cA64A64c) this is in fact, the exact way I need this packed. I understand how C strings work and such, but this re…

---

## [Oneline:strip\_tags](https://www.ruby-forum.com/t/oneline-strip-tags/179256)

<div class="topic-metadata">

**Author:** [@haoqi](https://www.ruby-forum.com/u/haoqi)\
**Replies:** 1\
**Last updated:** [November 20, 2009, 4:07pm UTC](https://www.ruby-forum.com/t/oneline-strip-tags/179256 "2009-11-20T16:07:31Z")

</div>

text=strip\_tags(html) can you just using oneline ruby code define the strip\_tags methods? def strip\_tags(html) //oneline here end

---

## [Make an exmpersion simpler](https://www.ruby-forum.com/t/make-an-exmpersion-simpler/179212)

<div class="topic-metadata">

**Author:** [@benol](https://www.ruby-forum.com/u/benol)\
**Replies:** 6\
**Last updated:** [November 20, 2009, 2:07pm UTC](https://www.ruby-forum.com/t/make-an-exmpersion-simpler/179212 "2009-11-20T14:07:16Z")

</div>

Any way to make this shorter? list2 \<\< list1 if list1 && !list1.empty? Thanks.

---

## [Controlling other applications functionality](https://www.ruby-forum.com/t/controlling-other-applications-functionality/179218)

<div class="topic-metadata">

**Author:** [@sepehr](https://www.ruby-forum.com/u/sepehr)\
**Replies:** 3\
**Last updated:** [November 20, 2009, 1:09pm UTC](https://www.ruby-forum.com/t/controlling-other-applications-functionality/179218 "2009-11-20T13:09:07Z")

</div>

How can I access an applications objects and call their functions programmatically using ruby? for example suppose there is a button in an application which performs a task, I want to press that button with my ruby s…

---

## [Dynamic array?](https://www.ruby-forum.com/t/dynamic-array/179200)

<div class="topic-metadata">

**Author:** [@freakguard](https://www.ruby-forum.com/u/freakguard)\
**Replies:** 11\
**Last updated:** [November 20, 2009, 8:33am UTC](https://www.ruby-forum.com/t/dynamic-array/179200 "2009-11-20T08:33:22Z")

</div>

I’d like to store 2d-data into an dynamic Array. The Matrix class got the problem of being static sized and the other solution does not work: You can pass a block to Hash#new which gets called if the key does not exis…

---

## [Reg: REXML](https://www.ruby-forum.com/t/reg-rexml/179241)

<div class="topic-metadata">

**Author:** [@pradheep](https://www.ruby-forum.com/u/pradheep)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 7:51am UTC](https://www.ruby-forum.com/t/reg-rexml/179241 "2009-11-20T07:51:07Z")

</div>

While i am migrating the database i got this error. please help me out to solve this problem (in C:/Documents and Settings/246265/My Documents/NetBeansProjects/Open) Requiring REXML rake aborted! no such file to loa…

---

## [\[Bug #2388\] test-all $BCf$K(B popen $B$G(B ruby.exe $B$,Mn$A$k(B](https://www.ruby-forum.com/t/bug-2388-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/179240)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 7:49am UTC](https://www.ruby-forum.com/t/bug-2388-test-all-bcf-k-b-popen-b-g-b-ruby-exe-b-mn-a-k-b/179240 "2009-11-20T07:49:28Z")

</div>

Bug #2388: test-all e$BCf$Ke(B popen e$B$Ge(B ruby.exe e$B$,Mn$A$ke(B http://redmine.ruby-lang.org/issues/show/2388 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Normal e$B%+%F%4%je(B: core, Target ver…

---

## [\[Bug #2387\] test/mkmf/base.rb $B$O(B RbConfig::CONFIG\['cppflags'\] $B$,(B nil $B$N$H$-Nc30$G;\_$](https://www.ruby-forum.com/t/bug-2387-test-mkmf-base-rb-b-o-b-rbconfig-config-cppflags-b-b-nil-b-n-h-nc30-g/179238)

<div class="topic-metadata">

**Author:** [@Kenta\_M](https://www.ruby-forum.com/u/Kenta_M)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 7:38am UTC](https://www.ruby-forum.com/t/bug-2387-test-mkmf-base-rb-b-o-b-rbconfig-config-cppflags-b-b-nil-b-n-h-nc30-g/179238 "2009-11-20T07:38:56Z")

</div>

Bug #2387: test/mkmf/base.rb e$B$Oe(B RbConfig::CONFIG\[‘cppflags’\] e$B$,e(B nil e$B$N$H$-Nc30$G;\_$^$ke(B http://redmine.ruby-lang.org/issues/show/2387 e$B5/I\<\<Te(B: Kenta M. e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Norm…

---

## [Porting in z/OS version Ruby 1.8.7](https://www.ruby-forum.com/t/porting-in-z-os-version-ruby-1-8-7/179231)

<div class="topic-metadata">

**Author:** [@yaroslav](https://www.ruby-forum.com/u/yaroslav)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 5:48am UTC](https://www.ruby-forum.com/t/porting-in-z-os-version-ruby-1-8-7/179231 "2009-11-20T05:48:53Z")

</div>

Function rb\_thread\_restore\_context does not work. Probably to Re-Write it function?

---

## [\[Bug #2369\] ENV's strange behavior on WinXP](https://www.ruby-forum.com/t/bug-2369-envs-strange-behavior-on-winxp/179229)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 4:19am UTC](https://www.ruby-forum.com/t/bug-2369-envs-strange-behavior-on-winxp/179229 "2009-11-20T04:19:21Z")

</div>

e$B%A%1%C%He(B #2369 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA) (e$BC1$J$k%a%b$G$9e(B) e$BA0\<T$Oe(BGetEnvironmentStringsA()e$B$N%P%0!#e(BWe$B$r;H$($P2sHr2DG=$G$O$"$k!#e(B e$B8e\<T$O$5$C$-$N$O;d$N4\*0c$$$G!"e(Bmsvcrte…

---

## [\[Bug #2369\] ENV's strange behavior on WinXP](https://www.ruby-forum.com/t/bug-2369-envs-strange-behavior-on-winxp/179227)

<div class="topic-metadata">

**Author:** [@Usaku\_NAKAMURA](https://www.ruby-forum.com/u/Usaku_NAKAMURA)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 3:28am UTC](https://www.ruby-forum.com/t/bug-2369-envs-strange-behavior-on-winxp/179227 "2009-11-20T03:28:27Z")

</div>

e$B%A%1%C%He(B #2369 e$B$,99?7$5$l$^$7$?!#e(B (by Usaku NAKAMURA) (e$BC1$J$k%a%b$G$9e(B) XP SP3e$B$G3NG’!#e(B msvcrte$B$O4X78$J$7!#e(BGetEnvironmentStrings()e$B$i$7$$!#e(B http://redmine.ruby-lang.org/issues/show/236…

---

## [Net::FTP $B$G(B upload $B$N(B resume $B$,$G$-$J$$(B](https://www.ruby-forum.com/t/net-ftp-b-g-b-upload-b-n-b-resume-b-g-j-b/179124)

<div class="topic-metadata">

**Author:** [@Tomoyuki\_C](https://www.ruby-forum.com/u/Tomoyuki_C)\
**Replies:** 6\
**Last updated:** [November 20, 2009, 2:38am UTC](https://www.ruby-forum.com/t/net-ftp-b-g-b-upload-b-n-b-resume-b-g-j-b/179124 "2009-11-20T02:38:07Z")

</div>

è¿‘æ°¸ã¨ç”³ã—ã¾ã™ã€‚ Net::FTP#resume= ã‚’ä½¿ç”¨ã—ã¦ãƒ•ã‚¡ã‚¤ãƒ«ã®ã‚¢ãƒƒãƒ—ãƒ­ãƒ¼ãƒ‰ã® å†é–‹ã‚’å¯èƒ½ã«ã—ã‚ˆã†ã¨ã—ã¦ã¿ãŸã¨ã“ã‚ã€è»¢é€çµæžœã®ãƒ•ã‚¡ã‚¤ãƒ«ãŒ è¿½åŠ ã§è»¢é€ã—ãŸéƒ¨åˆ†ã ã‘ã«ã…

---

## [Problem with gem installing](https://www.ruby-forum.com/t/problem-with-gem-installing/179202)

<div class="topic-metadata">

**Author:** [@leron](https://www.ruby-forum.com/u/leron)\
**Replies:** 3\
**Last updated:** [November 20, 2009, 2:34am UTC](https://www.ruby-forum.com/t/problem-with-gem-installing/179202 "2009-11-20T02:34:01Z")

</div>

I am using Aptana RadRail framework. Some times, after installing and trying to use new gem i getting error like this c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in gem\_original\_require': no such file…

---

## [Security Model](https://www.ruby-forum.com/t/security-model/179225)

<div class="topic-metadata">

**Author:** [@Mark\_Curphey](https://www.ruby-forum.com/u/Mark_Curphey)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 1:46am UTC](https://www.ruby-forum.com/t/security-model/179225 "2009-11-20T01:46:02Z")

</div>

Long time listener, first time poster Can anyone point me to any definite texts on the security model for the interpreter? I am interesting in understanding the nuts-and-bolts of how safe levels work. Cheers! Mark

---

## [Anybody interested in a KDevelop-Ruby-plugin?](https://www.ruby-forum.com/t/anybody-interested-in-a-kdevelop-ruby-plugin/179222)

<div class="topic-metadata">

**Author:** [@Jonathan\_Schmidt-Do](https://www.ruby-forum.com/u/Jonathan_Schmidt-Do)\
**Replies:** 0\
**Last updated:** [November 20, 2009, 12:11am UTC](https://www.ruby-forum.com/t/anybody-interested-in-a-kdevelop-ruby-plugin/179222 "2009-11-20T00:11:48Z")

</div>

Hi Ruby-fans! KDevelop is a great cross-platform-IDE (KDE project, www.kdevelop.org). But the Ruby-support is not yet usable. Maybe here are some developers with C++ or Qt experiences who would be interested in chan…

---

## [NKF $B$N(B MIME $B%(%s%3!\<%I!&%G%3!\<%I(B](https://www.ruby-forum.com/t/nkf-b-n-b-mime-b-s-3-i-g-3-i-b/179188)

<div class="topic-metadata">

**Author:** [@KISHIMOTOS\_Makoto](https://www.ruby-forum.com/u/KISHIMOTOS_Makoto)\
**Replies:** 3\
**Last updated:** [November 19, 2009, 11:48pm UTC](https://www.ruby-forum.com/t/nkf-b-n-b-mime-b-s-3-i-g-3-i-b/179188 "2009-11-19T23:48:23Z")

</div>

e$B$-$7$b$H$G$9e(B e$B\<!$K\<($9$h$&$J!"FCDj$N%Q%?!\<%s$NJ8;zNs$r!"e(Bruby e$BE:IU%i%$%V%i%j$Ne(B NKF e$B$Ge(B MIME e$B%(%s%3!\<%I!&%G%3!\<%I$9$k$H!“85$KLa$j$^$;$s!#e(B e$BD9$5$K$$+$7$/$J$k$7$-$$CM$,$"$k$h$&$J$N$G!"@5\>oF0…

---

## [Any official name for Ruby's class which makes "class methods"?](https://www.ruby-forum.com/t/any-official-name-for-rubys-class-which-makes-class-methods/179028)

<div class="topic-metadata">

**Author:** [@Hunt\_J](https://www.ruby-forum.com/u/Hunt_J)\
**Replies:** 19\
**Last updated:** [November 19, 2009, 11:47pm UTC](https://www.ruby-forum.com/t/any-official-name-for-rubys-class-which-makes-class-methods/179028 "2009-11-19T23:47:48Z")

</div>

We all know Ruby really doesn’t have class methods. But how do you call such classes that have “class methods”? I hear Japanese say ç‰¹ç•° class, but is there any English word for that? Is eigenclass an official name …

---

## [Ternary Operator and Arrays](https://www.ruby-forum.com/t/ternary-operator-and-arrays/179210)

<div class="topic-metadata">

**Author:** [@felix\_d](https://www.ruby-forum.com/u/felix_d)\
**Replies:** 4\
**Last updated:** [November 19, 2009, 9:57pm UTC](https://www.ruby-forum.com/t/ternary-operator-and-arrays/179210 "2009-11-19T21:57:46Z")

</div>

Given: ary = Array.new some\_hash = {‘a’ =\> 1, ‘b’ =\> 2, ‘c’ =\> 3} another\_array = \[‘a’, ‘c’\] Then: another\_array.each do |x| ary \<\< some\_hash.has\_key?(key) ? ’ ’ : some\_hash\[key\] end Expected: ary should be \[1,…

---

## [scope.SetVariable weirdness with instance\_eval](https://www.ruby-forum.com/t/scope-setvariable-weirdness-with-instance-eval/179214)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [November 19, 2009, 8:12pm UTC](https://www.ruby-forum.com/t/scope-setvariable-weirdness-with-instance-eval/179214 "2009-11-19T20:12:59Z")

</div>

Hi Consider the following code: public class Item { public string Title { get; private set; } public Item(string title){ Title = title; } } var \_engine = Ruby.CreateEngine(); var context = new Item(“The great…

---

## [Ruby-talk-ctl@ruby-lang.org](https://www.ruby-forum.com/t/ruby-talk-ctl-ruby-lang-org/179201)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 2\
**Last updated:** [November 19, 2009, 7:40pm UTC](https://www.ruby-forum.com/t/ruby-talk-ctl-ruby-lang-org/179201 "2009-11-19T19:40:12Z")

</div>

unsubscribe

---

## [SourceForge.org API](https://www.ruby-forum.com/t/sourceforge-org-api/179167)

<div class="topic-metadata">

**Author:** [@tcsnide](https://www.ruby-forum.com/u/tcsnide)\
**Replies:** 2\
**Last updated:** [November 19, 2009, 7:08pm UTC](https://www.ruby-forum.com/t/sourceforge-org-api/179167 "2009-11-19T19:08:35Z")

</div>

Is there any interest in a SourceForge.org API / CLI ? Since there is no official API (afaict) creating such an interface requires the use web-scripting/scraping. Has any one implemented any portions of such an API ?

---

## [Ruby/tk Help Please](https://www.ruby-forum.com/t/ruby-tk-help-please/179164)

<div class="topic-metadata">

**Author:** [@sean](https://www.ruby-forum.com/u/sean)\
**Replies:** 19\
**Last updated:** [November 19, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/ruby-tk-help-please/179164 "2009-11-19T17:47:37Z")

</div>

I am a complete beginner when it comes to programming and i need some help. I don’t know very much computer language jargan so please layman terms as much as possible. I began trying to learn to program about a year …

---

## [Getting a timestamp](https://www.ruby-forum.com/t/getting-a-timestamp/179179)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 7\
**Last updated:** [November 19, 2009, 5:34pm UTC](https://www.ruby-forum.com/t/getting-a-timestamp/179179 "2009-11-19T17:34:56Z")

</div>

Hi, I would like to get a timestamp from a Date object. What is the best aproach for this? thank you

---

## [Using /usr/sbin/sendmail in Ruby Script](https://www.ruby-forum.com/t/using-usr-sbin-sendmail-in-ruby-script/179208)

<div class="topic-metadata">

**Author:** [@drsharp](https://www.ruby-forum.com/u/drsharp)\
**Replies:** 5\
**Last updated:** [November 19, 2009, 5:25pm UTC](https://www.ruby-forum.com/t/using-usr-sbin-sendmail-in-ruby-script/179208 "2009-11-19T17:25:43Z")

</div>

Hi Guys, I’m very new to Ruby, so please bare with me! I’m trying to make a ruby script that runs a command/executable. The command/executable is native to Mac OS X 10.5 and 10.6. It’s the sendmail command (found in …

---

## [How to strip ruby comments in a ruby line of code?](https://www.ruby-forum.com/t/how-to-strip-ruby-comments-in-a-ruby-line-of-code/179204)

<div class="topic-metadata">

**Author:** [@alexandremutel](https://www.ruby-forum.com/u/alexandremutel)\
**Replies:** 16\
**Last updated:** [November 19, 2009, 5:20pm UTC](https://www.ruby-forum.com/t/how-to-strip-ruby-comments-in-a-ruby-line-of-code/179204 "2009-11-19T17:20:09Z")

</div>

Short description : My question is : do you know any available method, giving the string of a Ruby line of code, to remove comments from this line of code? Long description : For my dsl project, i’m loading my dsl f…

---

## [Problem with RSpec+Maven+jruby-complete.jar](https://www.ruby-forum.com/t/problem-with-rspec-maven-jruby-complete-jar/178744)

<div class="topic-metadata">

**Author:** [@a\_mc](https://www.ruby-forum.com/u/a_mc)\
**Replies:** 16\
**Last updated:** [November 19, 2009, 3:31pm UTC](https://www.ruby-forum.com/t/problem-with-rspec-maven-jruby-complete-jar/178744 "2009-11-19T15:31:59Z")

</div>

Hi, I’m trying to run RSpec from Maven through the jruby-rake-plugin. I’m getting an error where the plugin is looking for bin/spec: \[INFO\] Error opening script file: /Users/mario/Desktop/ abstra.cc/projects/BMClient…

---

## [Open a binary file-read bit-change bit-update same file](https://www.ruby-forum.com/t/open-a-binary-file-read-bit-change-bit-update-same-file/179187)

<div class="topic-metadata">

**Author:** [@mokkai](https://www.ruby-forum.com/u/mokkai)\
**Replies:** 3\
**Last updated:** [November 19, 2009, 1:54pm UTC](https://www.ruby-forum.com/t/open-a-binary-file-read-bit-change-bit-update-same-file/179187 "2009-11-19T13:54:15Z")

</div>

my Aim is i want to encrypt a file i want to open a binary file i want to read the 1-st bit if the bit is “1” then update that position bit to “0” instantly if the bit is “0” then update that position bit to “1” inst…

---

## [Class inside a Method Body](https://www.ruby-forum.com/t/class-inside-a-method-body/179086)

<div class="topic-metadata">

**Author:** [@mschwab](https://www.ruby-forum.com/u/mschwab)\
**Replies:** 14\
**Last updated:** [November 19, 2009, 1:13pm UTC](https://www.ruby-forum.com/t/class-inside-a-method-body/179086 "2009-11-19T13:13:52Z")

</div>

I have a class that works fine if I declare it outside of anything. If however I put the code inside a method, Ruby seems to object with a message “class definition in method body”. Can you suggest why Ruby has this c…

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

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