# Ruby

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

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

---

## [GPGME gem - cannot figure out how to decrypt data](https://www.ruby-forum.com/t/gpgme-gem-cannot-figure-out-how-to-decrypt-data/181738)

<div class="topic-metadata">

**Author:** [@arachnd](https://www.ruby-forum.com/u/arachnd)\
**Replies:** 10\
**Last updated:** [January 20, 2010, 9:52am UTC](https://www.ruby-forum.com/t/gpgme-gem-cannot-figure-out-how-to-decrypt-data/181738 "2010-01-20T09:52:16Z")

</div>

Hello, I’m pretty new to ruby and this is my first real program I’m writing. Currently I face an issue with the GPGME gem that I cannot figure out how to solve: The GPGME::decrypt method does not seem to work as I ex…

---

## [Racc error on new 1.9 hash syntax](https://www.ruby-forum.com/t/racc-error-on-new-1-9-hash-syntax/181709)

<div class="topic-metadata">

**Author:** [@micheldogger](https://www.ruby-forum.com/u/micheldogger)\
**Replies:** 7\
**Last updated:** [January 20, 2010, 9:19am UTC](https://www.ruby-forum.com/t/racc-error-on-new-1-9-hash-syntax/181709 "2010-01-20T09:19:37Z")

</div>

racc 1.4.6 does not understand when parsing " in: value " F:/Ruby19/lib/ruby/gems/1.9.1/gems/racc-1.4.6/lib/racc/parser.rb:347:in \`on\_error’: (Racc::ParseError) parse error on value “in” (kIN)

---

## [Help on the dummy module](https://www.ruby-forum.com/t/help-on-the-dummy-module/181911)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 2\
**Last updated:** [January 20, 2010, 6:39am UTC](https://www.ruby-forum.com/t/help-on-the-dummy-module/181911 "2010-01-20T06:39:09Z")

</div>

module ShiftMeansAppend def \<\<(x) #1 end end class String include ShiftMeansAppend end class Array include ShiftMeansAppend end def append\_to\_self(x) unless x.is\_a? ShiftMeansAppend #2 raise ArgumentError, …

---

## [Newbie needs help getting started](https://www.ruby-forum.com/t/newbie-needs-help-getting-started/181754)

<div class="topic-metadata">

**Author:** [@caryinvancouver](https://www.ruby-forum.com/u/caryinvancouver)\
**Replies:** 11\
**Last updated:** [January 20, 2010, 12:21am UTC](https://www.ruby-forum.com/t/newbie-needs-help-getting-started/181754 "2010-01-20T00:21:05Z")

</div>

I have just written the code for my first Ruby program, one that finds the shortest path from start to finish in a maze. All i/o is through files and a terminal. I have now turned to debugging it. To help me, I hav…

---

## [IronRuby.net Wiki Spam](https://www.ruby-forum.com/t/ironruby-net-wiki-spam/181896)

<div class="topic-metadata">

**Author:** [@dreamwave](https://www.ruby-forum.com/u/dreamwave)\
**Replies:** 2\
**Last updated:** [January 19, 2010, 11:47pm UTC](https://www.ruby-forum.com/t/ironruby-net-wiki-spam/181896 "2010-01-19T23:47:08Z")

</div>

There’s a ton of spam comments on the wiki… is there anyway to clean these up?

---

## [Curses! Poll: which gem is most complete/bug-free/recent/maintained?](https://www.ruby-forum.com/t/curses-poll-which-gem-is-most-complete-bug-free-recent-maintained/181904)

<div class="topic-metadata">

**Author:** [@zettabyte](https://www.ruby-forum.com/u/zettabyte)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 11:30pm UTC](https://www.ruby-forum.com/t/curses-poll-which-gem-is-most-complete-bug-free-recent-maintained/181904 "2010-01-19T23:30:10Z")

</div>

Hi everyone. I’m wondering if anyone here uses the ncurses (or ruby-ncurses) gem or any other \[n\]curses gem(s). If so, I’m wondering if anyone can tell me which gem/project is the most recent/maintained/up-to-date? I…

---

## [Creating GUI applications with Ruby 1.9.1](https://www.ruby-forum.com/t/creating-gui-applications-with-ruby-1-9-1/181844)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 23\
**Last updated:** [January 19, 2010, 11:17pm UTC](https://www.ruby-forum.com/t/creating-gui-applications-with-ruby-1-9-1/181844 "2010-01-19T23:17:08Z")

</div>

I’m wanting to port over a GUI app I created into ruby so that it maintains cross platform functionality. Before I go into app specifications, I’m trying to gain an understanding of what item(s) I will need to work wi…

---

## [Passing C Struct to Ruby](https://www.ruby-forum.com/t/passing-c-struct-to-ruby/181898)

<div class="topic-metadata">

**Author:** [@coldpeace](https://www.ruby-forum.com/u/coldpeace)\
**Replies:** 2\
**Last updated:** [January 19, 2010, 10:25pm UTC](https://www.ruby-forum.com/t/passing-c-struct-to-ruby/181898 "2010-01-19T22:25:46Z")

</div>

hey !! I’m newbie in Ruby , Actually , I wanna call some C methods and Structure from Ruby , But Still dont knw how to do in C … int VALUE my\_str\_new(VALUE arg) { my\_struct \*str =init\_Struct(arg) ; return \*str ; …

---

## [\[ANN\] ruby bounties--get paid to hack on ruby](https://www.ruby-forum.com/t/ann-ruby-bounties-get-paid-to-hack-on-ruby/181897)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 10:20pm UTC](https://www.ruby-forum.com/t/ann-ruby-bounties-get-paid-to-hack-on-ruby/181897 "2010-01-19T22:20:25Z")

</div>

Announcing the creation of a “ruby bounty” list Purpose, connect those who want to work on projects with those who want to pay for them. This is a list of projects which you’d like to see in Ruby and would be willing…

---

## [Float Points error](https://www.ruby-forum.com/t/float-points-error/181642)

<div class="topic-metadata">

**Author:** [@THAKUR\_PRASHANT\_SIN](https://www.ruby-forum.com/u/THAKUR_PRASHANT_SIN)\
**Replies:** 12\
**Last updated:** [January 19, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/float-points-error/181642 "2010-01-19T21:21:23Z")

</div>

Hi, I am facing some issues in dealing with floating point numbers I am picking floating point numbers form MySQL DB for example 22.09 And similar numbers and store them in an array in ruby. When I collect all the nu…

---

## [Which project should I work on?](https://www.ruby-forum.com/t/which-project-should-i-work-on/171879)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 36\
**Last updated:** [January 19, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/which-project-should-i-work-on/171879 "2010-01-19T20:33:47Z")

</div>

I was wondering on any feedback on which of the following pet projects would be most helpful to the community. create \[another\] ruby JIT There are some ideas that could speed up the tired old VM \[and the new VM\]. …

---

## [Code Review: More ActionPack fixes](https://www.ruby-forum.com/t/code-review-more-actionpack-fixes/181856)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 5\
**Last updated:** [January 19, 2010, 8:17pm UTC](https://www.ruby-forum.com/t/code-review-more-actionpack-fixes/181856 "2010-01-19T20:17:35Z")

</div>

tfpt review “/shelveset:rails;REDMOND\\sborde” Comment : defined? should clear $! of any exception that may have been thrown by const\_missing Makes NativeMethods.SetEnvironmentVariable check if the call succeeded Ad…

---

## [Ruby IDE for MacOS-X](https://www.ruby-forum.com/t/ruby-ide-for-macos-x/181852)

<div class="topic-metadata">

**Author:** [@Jean\_Guillaume\_Pyra](https://www.ruby-forum.com/u/Jean_Guillaume_Pyra)\
**Replies:** 3\
**Last updated:** [January 19, 2010, 7:11pm UTC](https://www.ruby-forum.com/t/ruby-ide-for-macos-x/181852 "2010-01-19T19:11:01Z")

</div>

What’s the best one to use with beginners ? Something with integrated syntax editor, browser of doc… Thanks, JG

---

## [String to int](https://www.ruby-forum.com/t/string-to-int/181860)

<div class="topic-metadata">

**Author:** [@pcalcado](https://www.ruby-forum.com/u/pcalcado)\
**Replies:** 7\
**Last updated:** [January 19, 2010, 7:03pm UTC](https://www.ruby-forum.com/t/string-to-int/181860 "2010-01-19T19:03:15Z")

</div>

Is there a nice way to convert a string to an integer if it is in fact an integer, and to return nil or even an error if it’s not? The method to\_i returns 0 if the string is not an integer, which isn’t hugely helpfu…

---

## [Rss?](https://www.ruby-forum.com/t/rss/181842)

<div class="topic-metadata">

**Author:** [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Replies:** 3\
**Last updated:** [January 19, 2010, 6:36pm UTC](https://www.ruby-forum.com/t/rss/181842 "2010-01-19T18:36:23Z")

</div>

Is there an easy jruby way to get the rss of the current process? Just wondering. Thanks. -r

---

## [FFI enums not supported in jruby?](https://www.ruby-forum.com/t/ffi-enums-not-supported-in-jruby/181871)

<div class="topic-metadata">

**Author:** [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Replies:** 2\
**Last updated:** [January 19, 2010, 5:51pm UTC](https://www.ruby-forum.com/t/ffi-enums-not-supported-in-jruby/181871 "2010-01-19T17:51:49Z")

</div>

hi there, in ruby this work, in jruby doesn’t: A = enum( :foo, :bar ) class Whatever \< FFI::ManagedStruct layout :name, A end In the ffi/types.rb I see there is no enum defined (but in the ffi/types.rb from the ru…

---

## [Delayed evaluation of append\_features](https://www.ruby-forum.com/t/delayed-evaluation-of-append-features/181880)

<div class="topic-metadata">

**Author:** [@danielb](https://www.ruby-forum.com/u/danielb)\
**Replies:** 0\
**Last updated:** [January 19, 2010, 5:04pm UTC](https://www.ruby-forum.com/t/delayed-evaluation-of-append-features/181880 "2010-01-19T17:04:59Z")

</div>

Hi, I was just reading this bit: http://judofyr.net/posts/never-gonna-let-you-go.html And that had me wondering about my “interface” implementation. At the moment, users must declare the methods before they implement…

---

## [Glassfish v3 gem configuration for SSL](https://www.ruby-forum.com/t/glassfish-v3-gem-configuration-for-ssl/181851)

<div class="topic-metadata">

**Author:** [@johnlee2800](https://www.ruby-forum.com/u/johnlee2800)\
**Replies:** 1\
**Last updated:** [January 19, 2010, 4:08pm UTC](https://www.ruby-forum.com/t/glassfish-v3-gem-configuration-for-ssl/181851 "2010-01-19T16:08:47Z")

</div>

I have been using the glassfish v1.0.2 gem (Glassfish v3) to run as the web server, and now wants to add https to it. However, I am having difficulty in finding how to configure it and getting the SSL certificate t…

---

## [Ffi: How to use wchar\_t strings?](https://www.ruby-forum.com/t/ffi-how-to-use-wchar-t-strings/181810)

<div class="topic-metadata">

**Author:** [@quintus](https://www.ruby-forum.com/u/quintus)\
**Replies:** 3\
**Last updated:** [January 19, 2010, 2:18pm UTC](https://www.ruby-forum.com/t/ffi-how-to-use-wchar-t-strings/181810 "2010-01-19T14:18:14Z")

</div>

Hello, I’m trying to use the ffi gem to work with some WinAPI functions. Till now, I’ve used the win32-api gem which worked quite well, but I’d like to try out something new (and maybe easier :wink: ). So, here’s my …

---

## [What does this mean?](https://www.ruby-forum.com/t/what-does-this-mean/181775)

<div class="topic-metadata">

**Author:** [@rubynut](https://www.ruby-forum.com/u/rubynut)\
**Replies:** 9\
**Last updated:** [January 19, 2010, 3:18am UTC](https://www.ruby-forum.com/t/what-does-this-mean/181775 "2010-01-19T03:18:26Z")

</div>

For this statement: @speaks\_english ||= @name.size \> 6 does it mean something like below? if @name.size \> 6 @speaks\_english ||= @name.size end Even if I guess that correctly, I’m still surprised why ruby can write …

---

## [Return class as Integer](https://www.ruby-forum.com/t/return-class-as-integer/181831)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 4\
**Last updated:** [January 19, 2010, 1:06am UTC](https://www.ruby-forum.com/t/return-class-as-integer/181831 "2010-01-19T01:06:08Z")

</div>

hello, Can anyone tell me how to get a return class as Integer in ruby? and to use Integer.new method with parameter as a number…

---

## [Question about some changes from Ruby 1.8.6 to Ruby 1.9](https://www.ruby-forum.com/t/question-about-some-changes-from-ruby-1-8-6-to-ruby-1-9/181832)

<div class="topic-metadata">

**Author:** [@elricstorm](https://www.ruby-forum.com/u/elricstorm)\
**Replies:** 1\
**Last updated:** [January 18, 2010, 11:38pm UTC](https://www.ruby-forum.com/t/question-about-some-changes-from-ruby-1-8-6-to-ruby-1-9/181832 "2010-01-18T23:38:22Z")

</div>

So, the bulk of my issues thus far have been pretty simple and I’ve isolated and ported over a very lengthy app from 1.8.6 to 1.9.1. The biggest issues I saw were things like scopes: Before: named\_scope :private\_page…

---

## [Integer class error](https://www.ruby-forum.com/t/integer-class-error/181822)

<div class="topic-metadata">

**Author:** [@atheeq](https://www.ruby-forum.com/u/atheeq)\
**Replies:** 3\
**Last updated:** [January 18, 2010, 11:23pm UTC](https://www.ruby-forum.com/t/integer-class-error/181822 "2010-01-18T23:23:44Z")

</div>

Hello, how to use Integer class in ruby?? When I enter this from irb console, this error is thrown out… Integer.new(3) NoMethodError: undefined method \`new’ for Integer:Class from (irb):182 Thanks in advance:)

---

## [Code Review: regressions](https://www.ruby-forum.com/t/code-review-regressions/181828)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 1\
**Last updated:** [January 18, 2010, 11:12pm UTC](https://www.ruby-forum.com/t/code-review-regressions/181828 "2010-01-18T23:12:01Z")

</div>

tfpt review “/shelveset:regressions;REDMOND\\jdeville” Comment : Closes the following bugs: http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=3196 http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2…

---

## [Specs updated](https://www.ruby-forum.com/t/specs-updated/181826)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 18, 2010, 10:57pm UTC](https://www.ruby-forum.com/t/specs-updated/181826 "2010-01-18T22:57:23Z")

</div>

The specs have been updated to a more recent version of RubySpec, it’s a few days due to the time it takes to do this, but it is done. I will be pushing shortly, and then Jimmy can update ironruby.info. JD

---

## [Accessing classes defined in IronRuby.dll from within IronRuby (IronRuby 1.0RC1)](https://www.ruby-forum.com/t/accessing-classes-defined-in-ironruby-dll-from-within-ironruby-ironruby-1-0rc1/181772)

<div class="topic-metadata">

**Author:** [@Orion\_E](https://www.ruby-forum.com/u/Orion_E)\
**Replies:** 6\
**Last updated:** [January 18, 2010, 10:09pm UTC](https://www.ruby-forum.com/t/accessing-classes-defined-in-ironruby-dll-from-within-ironruby-ironruby-1-0rc1/181772 "2010-01-18T22:09:56Z")

</div>

I’d like to use the IronRuby name mangling methods from within a script I’m writing, but it seems as though I can’t access things that are defined in IronRuby.dll? Reflector tells me that TryMangleName is a public s…

---

## [MVC .... Many views and one controller](https://www.ruby-forum.com/t/mvc-many-views-and-one-controller/181794)

<div class="topic-metadata">

**Author:** [@ralphshnelvar](https://www.ruby-forum.com/u/ralphshnelvar)\
**Replies:** 6\
**Last updated:** [January 18, 2010, 9:29pm UTC](https://www.ruby-forum.com/t/mvc-many-views-and-one-controller/181794 "2010-01-18T21:29:33Z")

</div>

What’s the right RoR way if a controller needs to display one of many views in, say, an index method?

---

## [What does ||= represent in this situation?](https://www.ruby-forum.com/t/what-does-represent-in-this-situation/181746)

<div class="topic-metadata">

**Author:** [@jmaenpaa](https://www.ruby-forum.com/u/jmaenpaa)\
**Replies:** 9\
**Last updated:** [January 18, 2010, 7:45pm UTC](https://www.ruby-forum.com/t/what-does-represent-in-this-situation/181746 "2010-01-18T19:45:23Z")

</div>

Hey all, || is equal to Or. So what would ||= in this situation? def expensive @expensive ||= begin n = 99 buf = “” begin buf \<\< “#{n} bottles of beer on the wall\\n” # … n -= 1 end while n \> 0 buf \<\< “no more …

---

## [Jruby annotation support - something new?](https://www.ruby-forum.com/t/jruby-annotation-support-something-new/181658)

<div class="topic-metadata">

**Author:** [@dalton](https://www.ruby-forum.com/u/dalton)\
**Replies:** 5\
**Last updated:** [January 18, 2010, 6:49pm UTC](https://www.ruby-forum.com/t/jruby-annotation-support-something-new/181658 "2010-01-18T18:49:45Z")

</div>

Hello there, a few month ago, I wanted to know whether jruby supports annotations. Now I am at a point where I have the same question again. I read something about using annotation-based frameworks like here: But I …

---

## [Basic question: passing a modifiable argument to a routine](https://www.ruby-forum.com/t/basic-question-passing-a-modifiable-argument-to-a-routine/181766)

<div class="topic-metadata">

**Author:** [@lalawawa](https://www.ruby-forum.com/u/lalawawa)\
**Replies:** 9\
**Last updated:** [January 18, 2010, 5:23pm UTC](https://www.ruby-forum.com/t/basic-question-passing-a-modifiable-argument-to-a-routine/181766 "2010-01-18T17:23:43Z")

</div>

Arguments to subroutines seem to be passed by value in ruby $ irb irb(main):001:0\> def woof(a) irb(main):002:1\> a += 2 irb(main):003:1\> end =\> nil irb(main):004:0\> b = 5 =\> 5 irb(main):005:0\> woof(b) =\> 7 irb…

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

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