# Ruby

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

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

---

## [Format code, IDE](https://www.ruby-forum.com/t/format-code-ide/175975)

<div class="topic-metadata">

**Author:** [@Thufir](https://www.ruby-forum.com/u/Thufir)\
**Replies:** 5\
**Last updated:** [September 24, 2009, 1:30pm UTC](https://www.ruby-forum.com/t/format-code-ide/175975 "2009-09-24T13:30:40Z")

</div>

outside of eclipse or netbeans plugins, is there an open source ruby IDE? Even just using GNU fm to format code would be sufficient, but I’m not sure how to go about that. For now I find myself firing up netbeans fr…

---

## [Monkey Patching 2 Methods, Overrides One Method, Not The Other](https://www.ruby-forum.com/t/monkey-patching-2-methods-overrides-one-method-not-the-other/175650)

<div class="topic-metadata">

**Author:** [@MaggotChild](https://www.ruby-forum.com/u/MaggotChild)\
**Replies:** 17\
**Last updated:** [September 24, 2009, 1:15pm UTC](https://www.ruby-forum.com/t/monkey-patching-2-methods-overrides-one-method-not-the-other/175650 "2009-09-24T13:15:27Z")

</div>

I’m monkey patching 2 methods of an existing module: some\_method() and another\_method() Calling some\_method() on an instance of class that includes the original module works fine (calls the monkey patched version), bu…

---

## [Class, Module and Mixin](https://www.ruby-forum.com/t/class-module-and-mixin/176070)

<div class="topic-metadata">

**Author:** [@sijo](https://www.ruby-forum.com/u/sijo)\
**Replies:** 1\
**Last updated:** [September 24, 2009, 12:50pm UTC](https://www.ruby-forum.com/t/class-module-and-mixin/176070 "2009-09-24T12:50:52Z")

</div>

Hi Could anybody please send me some tutorials or links to get a good understanding of Class ,Module and mixins in Ruby? Thanks in advance Sijo

---

## [How call function from other class(self created) in ruby program](https://www.ruby-forum.com/t/how-call-function-from-other-class-self-created-in-ruby-program/176078)

<div class="topic-metadata">

**Author:** [@raju](https://www.ruby-forum.com/u/raju)\
**Replies:** 1\
**Last updated:** [September 24, 2009, 12:47pm UTC](https://www.ruby-forum.com/t/how-call-function-from-other-class-self-created-in-ruby-program/176078 "2009-09-24T12:47:21Z")

</div>

let I have 2 diff. program code at C drive: A.rb and B.rb ! A.rb is class A def a puts “Hello, I am in A” end end !B.rb is class B def b puts “I am in B” end end Know i want to call object of Class A of co…

---

## [Why email part.body doesn't change?](https://www.ruby-forum.com/t/why-email-part-body-doesnt-change/176071)

<div class="topic-metadata">

**Author:** [@rabarama](https://www.ruby-forum.com/u/rabarama)\
**Replies:** 0\
**Last updated:** [September 24, 2009, 10:56am UTC](https://www.ruby-forum.com/t/why-email-part-body-doesnt-change/176071 "2009-09-24T10:56:06Z")

</div>

this code doesn’t work… why? how can i add that head to that body? head is the html text i want to add to p (a tmail object) def injecthead(head,p) if p.multipart? then p.parts.each do |pa| injecthead(head,pa) end …

---

## [Can someone in Japan please kancho the authors of the bioruby gem at Kyoto University?](https://www.ruby-forum.com/t/can-someone-in-japan-please-kancho-the-authors-of-the-bioruby-gem-at-kyoto-university/176069)

<div class="topic-metadata">

**Author:** [@timr](https://www.ruby-forum.com/u/timr)\
**Replies:** 0\
**Last updated:** [September 24, 2009, 10:25am UTC](https://www.ruby-forum.com/t/can-someone-in-japan-please-kancho-the-authors-of-the-bioruby-gem-at-kyoto-university/176069 "2009-09-24T10:25:40Z")

</div>

With every method call, the bioruby gem is surprising me with its behavior–not pleasant surprises either (more like an unpleasant kancho kind of surprise–hence the request to repay the authors). For those who haven’t …

---

## [CLR Properties in IronRuby](https://www.ruby-forum.com/t/clr-properties-in-ironruby/176056)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [September 24, 2009, 6:23am UTC](https://www.ruby-forum.com/t/clr-properties-in-ironruby/176056 "2009-09-24T06:23:21Z")

</div>

How can I refer to the CLR properties in IronRuby. public class Customer { public string FirstName { get;set; } } In Ruby: @customer.FirstName = ‘s’ OR @customer.firstname = ‘s’

---

## [Ruby 1.9, Rubygems, and .gemspec warnings](https://www.ruby-forum.com/t/ruby-1-9-rubygems-and-gemspec-warnings/175070)

<div class="topic-metadata">

**Author:** [@rsanheim](https://www.ruby-forum.com/u/rsanheim)\
**Replies:** 13\
**Last updated:** [September 24, 2009, 5:09am UTC](https://www.ruby-forum.com/t/ruby-1-9-rubygems-and-gemspec-warnings/175070 "2009-09-24T05:09:00Z")

</div>

Hi all I’m getting a massive amount of gemspec warnings to STDERR in Ruby 1.9.1 whenever ‘rubygems/specification’ gets required. The error I’m seeing is: WARNING: #\<NoMethodError: undefined method \`\>’ for nil:NilCl…

---

## [Help diagnosing/reporting a crash from CFUNC wait2 (via Process.wait2)](https://www.ruby-forum.com/t/help-diagnosing-reporting-a-crash-from-cfunc-wait2-via-process-wait2/176052)

<div class="topic-metadata">

**Author:** [@Jonathan\_Gold](https://www.ruby-forum.com/u/Jonathan_Gold)\
**Replies:** 0\
**Last updated:** [September 24, 2009, 3:57am UTC](https://www.ruby-forum.com/t/help-diagnosing-reporting-a-crash-from-cfunc-wait2-via-process-wait2/176052 "2009-09-24T03:57:35Z")

</div>

For reasons I can’t quite understand, code which used to work is not failing from within wait2. I’m still working on how to concisely repro it (not easy), but the ruby stack trace suggests that I contact a bugreport p…

---

## [\[ANN\] ActiveSupport-GemFireCache a Jruby/Rails Plugin](https://www.ruby-forum.com/t/ann-activesupport-gemfirecache-a-jruby-rails-plugin/176049)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 0\
**Last updated:** [September 24, 2009, 3:11am UTC](https://www.ruby-forum.com/t/ann-activesupport-gemfirecache-a-jruby-rails-plugin/176049 "2009-09-24T03:11:19Z")

</div>

Hello, Just wanted to let the community know that I put some time/effort into building a basic Jruby/Rails plugin that will allow you to replace the cache\_store with one specific for the Gemfire Cache Server. For th…

---

## [\[Bug #783\](Closed) mathn $B$7$?\>l9g$N(B \*\* $B$N?6Iq$$$K0l4S@-$,$J$$(B](https://www.ruby-forum.com/t/bug-783-closed-mathn-b-7-l9g-n-b-b-n-6iq-k0l4s-j-b/176048)

<div class="topic-metadata">

**Author:** [@darwin](https://www.ruby-forum.com/u/darwin)\
**Replies:** 0\
**Last updated:** [September 24, 2009, 3:09am UTC](https://www.ruby-forum.com/t/bug-783-closed-mathn-b-7-l9g-n-b-b-n-6iq-k0l4s-j-b/176048 "2009-09-24T03:09:34Z")

</div>

e$B%A%1%C%He(B #783 e$B$,99?7$5$l$^$7$?!#e(B (by Marc-Andre L.) e$B%+%F%4%je(B libe$B$K%;%C%He(B e$B%9%F!\<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B Target version Ruby 1.8.8e$B$K%;%C%He(B ruby -v -e$B$K%;%C%He(B Fix…

---

## [Cucumber Problems with IronRuby](https://www.ruby-forum.com/t/cucumber-problems-with-ironruby/175970)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [September 24, 2009, 2:30am UTC](https://www.ruby-forum.com/t/cucumber-problems-with-ironruby/175970 "2009-09-24T02:30:56Z")

</div>

Hi, I am trying to get Cucumber to work with IronRuby and .NET class. For some reason it does not like the describe keyword from spec and before keyword. Here is the feature file: Feature: Addition In order to avo…

---

## [Newbie: Are Ruby regexp's a subset, superset, or equal to Perl's?](https://www.ruby-forum.com/t/newbie-are-ruby-regexps-a-subset-superset-or-equal-to-perls/175745)

<div class="topic-metadata">

**Author:** [@harry](https://www.ruby-forum.com/u/harry)\
**Replies:** 12\
**Last updated:** [September 24, 2009, 12:05am UTC](https://www.ruby-forum.com/t/newbie-are-ruby-regexps-a-subset-superset-or-equal-to-perls/175745 "2009-09-24T00:05:46Z")

</div>

Hi, Does Ruby 1.9 explicitly support the full regexp flavor of Perl 5.10? Specifically, things like… look-around assertions, extended / experimental Perl regexp features such as “(?{ code })” and “(?? { code })” . M…

---

## [Free JRuby/Rails/GlassFish webinar - Sep 23, 10am PT](https://www.ruby-forum.com/t/free-jruby-rails-glassfish-webinar-sep-23-10am-pt/175743)

<div class="topic-metadata">

**Author:** [@arung](https://www.ruby-forum.com/u/arung)\
**Replies:** 1\
**Last updated:** [September 24, 2009, 12:04am UTC](https://www.ruby-forum.com/t/free-jruby-rails-glassfish-webinar-sep-23-10am-pt/175743 "2009-09-24T00:04:01Z")

</div>

More details at: http://blog.arungupta.me/2009/09/free-railsglassfish-webinar-with-live-qa-sep-23-200910am-pt/ Thanks, -Arun Need Application Server ? Download from http://glassfish.org Blog: http://blog.arungupta.m…

---

## [GC Patch for 1.8.7?](https://www.ruby-forum.com/t/gc-patch-for-1-8-7/176038)

<div class="topic-metadata">

**Author:** [@tnyplz](https://www.ruby-forum.com/u/tnyplz)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 10:59pm UTC](https://www.ruby-forum.com/t/gc-patch-for-1-8-7/176038 "2009-09-23T22:59:23Z")

</div>

http://guides.rubyonrails.org/performance\_testing.html Explains how to apply the GC Patch to get better performance measurements but this patch doesn’t work in 1.8.7 (I have ruby-1.8.7-p174). Is there a patch out th…

---

## [Array of hashes issue](https://www.ruby-forum.com/t/array-of-hashes-issue/175747)

<div class="topic-metadata">

**Author:** [@bdaily](https://www.ruby-forum.com/u/bdaily)\
**Replies:** 6\
**Last updated:** [September 23, 2009, 8:27pm UTC](https://www.ruby-forum.com/t/array-of-hashes-issue/175747 "2009-09-23T20:27:15Z")

</div>

Hi, I’m new to ruby and am trying to do a project so I can learn ruby and build a tool I need for my job. I want to creat an array of hashes and then get the information out. This is what I have right now: this is i…

---

## [Re: Seems like it is loading from the Ruby	libraries instead of IronRuby gems](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 5\
**Last updated:** [September 23, 2009, 8:01pm UTC](https://www.ruby-forum.com/t/re-seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/176019 "2009-09-23T20:01:37Z")

</div>

Can you start a new cmd process, run dev.bat, and then run “set” and paste that output? Thanks JD From: Mohammad A. removed\_email\_address@domain.invalid Sent: September 23, 2009 9:15 AM To: removed\_email\_address@d…

---

## [Secure ruby, rails programming](https://www.ruby-forum.com/t/secure-ruby-rails-programming/176023)

<div class="topic-metadata">

**Author:** [@Rajinder\_Y](https://www.ruby-forum.com/u/Rajinder_Y)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/secure-ruby-rails-programming/176023 "2009-09-23T19:43:28Z")

</div>

Hello Community, I am just learning Ruby and Rails and would like to know what good security ruby gems are out there that will help me keep data sent over the wire secure or stored on a server secure vs plain old text…

---

## [Code coverage of ironruby code](https://www.ruby-forum.com/t/code-coverage-of-ironruby-code/175985)

<div class="topic-metadata">

**Author:** [@barby](https://www.ruby-forum.com/u/barby)\
**Replies:** 4\
**Last updated:** [September 23, 2009, 6:57pm UTC](https://www.ruby-forum.com/t/code-coverage-of-ironruby-code/175985 "2009-09-23T18:57:47Z")

</div>

Hi Is there a way to get the code coverage when running RSpec or Test::Unit stuff with ironruby? It would help me a lot to set build tresholds etc. Because I guess the C# tools won’t be able to do it and the ruby tool…

---

## [Seems like it is loading from the Ruby libraries instead of IronRuby gems](https://www.ruby-forum.com/t/seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/175937)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 14\
**Last updated:** [September 23, 2009, 6:40pm UTC](https://www.ruby-forum.com/t/seems-like-it-is-loading-from-the-ruby-libraries-instead-of-ironruby-gems/175937 "2009-09-23T18:40:13Z")

</div>

– Mohammad A. MVP (Microsoft Valuable Professional) www.highoncoding.com

---

## [Good ebooks site](https://www.ruby-forum.com/t/good-ebooks-site/176016)

<div class="topic-metadata">

**Author:** [@cari\_ro](https://www.ruby-forum.com/u/cari_ro)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 6:26pm UTC](https://www.ruby-forum.com/t/good-ebooks-site/176016 "2009-09-23T18:26:10Z")

</div>

If you want to have more ebooks, more passwords, more informations, please go to http://bbs.techyou.net/?fromuser=cari\_ro or http://bbs.techyou.net/?fromuid=8274 Amazing site with everything you need

---

## [Net::Http, end of file reached](https://www.ruby-forum.com/t/net-http-end-of-file-reached/176009)

<div class="topic-metadata">

**Author:** [@tcblues](https://www.ruby-forum.com/u/tcblues)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 6:11pm UTC](https://www.ruby-forum.com/t/net-http-end-of-file-reached/176009 "2009-09-23T18:11:59Z")

</div>

Hi, I’m working with Net::Http and I have to calculate a few things before I send some of the posts, the problem is sometimes it takes more than 10 seconds to calculate them and then I get the error: end of file reach…

---

## [Before is different from Before](https://www.ruby-forum.com/t/before-is-different-from-before/175968)

<div class="topic-metadata">

**Author:** [@metanoize](https://www.ruby-forum.com/u/metanoize)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 5:56pm UTC](https://www.ruby-forum.com/t/before-is-different-from-before/175968 "2009-09-23T17:56:17Z")

</div>

I found this the hard way. When using Cucumber with IronRuby before is different from Before. The later one (Before) should be used when working with Cucumber. before should be used when working with spec. Now I know…

---

## [Re: code coverage of ironruby code](https://www.ruby-forum.com/t/re-code-coverage-of-ironruby-code/176004)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 4:46pm UTC](https://www.ruby-forum.com/t/re-code-coverage-of-ironruby-code/176004 "2009-09-23T16:46:36Z")

</div>

Both of those libraries have integration with rcov, so if you were to look into porting that library it might help. Otherwise we may need to look into writing something custom. From: Ivan Porto C. removed\_email\_addre…

---

## [Java, Ruby, JRuby, JRubify some Java?](https://www.ruby-forum.com/t/java-ruby-jruby-jrubify-some-java/175977)

<div class="topic-metadata">

**Author:** [@Audrey\_A\_Lee](https://www.ruby-forum.com/u/Audrey_A_Lee)\
**Replies:** 2\
**Last updated:** [September 23, 2009, 3:13pm UTC](https://www.ruby-forum.com/t/java-ruby-jruby-jrubify-some-java/175977 "2009-09-23T15:13:24Z")

</div>

Hello JRuby People, I’m not quite ready to JRubyify yet but, I’m working on a mini-project which requires that I screen-capture a portion of my x-display on a linux box. It looks like I can use a class in Java named …

---

## [Sessions](https://www.ruby-forum.com/t/sessions/175983)

<div class="topic-metadata">

**Author:** [@sharankruthi](https://www.ruby-forum.com/u/sharankruthi)\
**Replies:** 1\
**Last updated:** [September 23, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/sessions/175983 "2009-09-23T15:05:19Z")

</div>

Hi, Is it possible to access session set in 1 controller in another controller?

---

## [Accessing an instance variable in another method](https://www.ruby-forum.com/t/accessing-an-instance-variable-in-another-method/175898)

<div class="topic-metadata">

**Author:** [@subashinikumar](https://www.ruby-forum.com/u/subashinikumar)\
**Replies:** 5\
**Last updated:** [September 23, 2009, 3:03pm UTC](https://www.ruby-forum.com/t/accessing-an-instance-variable-in-another-method/175898 "2009-09-23T15:03:00Z")

</div>

Hi, I am new to Rails.I tried developing a basic quiz application.Please help me out in my doubt.Thanks in advance \<% CODE %\> class QuizController \< ApplicationController def index i have retrieved the first five q…

---

## [GDBM plus classes other than String](https://www.ruby-forum.com/t/gdbm-plus-classes-other-than-string/176000)

<div class="topic-metadata">

**Author:** [@David\_ASBlack](https://www.ruby-forum.com/u/David_ASBlack)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/gdbm-plus-classes-other-than-string/176000 "2009-09-23T14:38:23Z")

</div>

Hi – As an offshoot of some playing around with ActiveModel (part of Rails 3) and adding non-relational database backends to Rails, I’ve spawned a little project called GDBMP, which lets you use non-string keys and v…

---

## [Mini Parser](https://www.ruby-forum.com/t/mini-parser/175988)

<div class="topic-metadata">

**Author:** [@karthikb](https://www.ruby-forum.com/u/karthikb)\
**Replies:** 3\
**Last updated:** [September 23, 2009, 2:24pm UTC](https://www.ruby-forum.com/t/mini-parser/175988 "2009-09-23T14:24:03Z")

</div>

Hi all, I have a requirement. I have a to read some commands from file and output as another file. For example if the input file is like below: 6 WRITE Today WRITE is UNDO 1 WRITE my UNDO 2 WRITE birthday …

---

## [Problems with Jruby and Oracle](https://www.ruby-forum.com/t/problems-with-jruby-and-oracle/175997)

<div class="topic-metadata">

**Author:** [@rafaelrosafu](https://www.ruby-forum.com/u/rafaelrosafu)\
**Replies:** 0\
**Last updated:** [September 23, 2009, 2:09pm UTC](https://www.ruby-forum.com/t/problems-with-jruby-and-oracle/175997 "2009-09-23T14:09:09Z")

</div>

Hi all, when I try to start my jruby app I receive the following error: The driver encountered an error: unable to choose type for text from: \["LONG ", "CLOB "\] C…

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

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