# Ruby

**URL:** https://www.ruby-forum.com/c/ruby/7.md

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

---

## [Montreal.rb September 2026: Ruby Version Managers in 2026](https://www.ruby-forum.com/t/montreal-rb-september-2026-ruby-version-managers-in-2026/268674)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 0\
**Last updated:** [September 29, 2026, 5:17pm UTC](https://www.ruby-forum.com/t/montreal-rb-september-2026-ruby-version-managers-in-2026/268674 "2026-09-29T17:17:12Z")

</div>

The video and slides for the Montreal.rb September 2026 talk “Ruby Version Managers in 2026” have been published! Talk Description: It is often useful to install more than one Ruby version on one’s machine, whether to …

---

## [MRI-4 thread scheduling vs Timeout.timeout](https://www.ruby-forum.com/t/mri-4-thread-scheduling-vs-timeout-timeout/268217)

<div class="topic-metadata">

**Author:** [@duck2duck](https://www.ruby-forum.com/u/duck2duck)\
**Replies:** 0\
**Last updated:** [March 13, 2026, 8:22am UTC](https://www.ruby-forum.com/t/mri-4-thread-scheduling-vs-timeout-timeout/268217 "2026-03-13T08:22:19Z")

</div>

I recently learned about timeout (forum does not allow me to link to github). I read into its source code - it uses Ractor features, Fiber features and Thread features – the code is too clever for me to understand. I h…

---

## [Interviewing Ruby Software Engineers Is Easier Than Ever in 2025!](https://www.ruby-forum.com/t/interviewing-ruby-software-engineers-is-easier-than-ever-in-2025/268069)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 1\
**Last updated:** [January 30, 2026, 1:13am UTC](https://www.ruby-forum.com/t/interviewing-ruby-software-engineers-is-easier-than-ever-in-2025/268069 "2026-01-30T01:13:25Z")

</div>

New developments in recent years have made it super-easy to interview Ruby Software Engineers and tell the good ones from the bad ones in 2025:

---

## [Ruby curses - how to find current field](https://www.ruby-forum.com/t/ruby-curses-how-to-find-current-field/268112)

<div class="topic-metadata">

**Author:** [@colinmac](https://www.ruby-forum.com/u/colinmac)\
**Replies:** 0\
**Last updated:** [January 6, 2026, 5:54pm UTC](https://www.ruby-forum.com/t/ruby-curses-how-to-find-current-field/268112 "2026-01-06T17:54:32Z")

</div>

I am new here. Sorry if this is posted in the wrong place. I am trying curses from Ruby on an rpi. I have a form with fields up and running but I need to determine which field in the form has the cursor when a particula…

---

## [The Embarrassing Ruby/Rails Subreddit Chronicles 2025-11-24](https://www.ruby-forum.com/t/the-embarrassing-ruby-rails-subreddit-chronicles-2025-11-24/268053)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 0\
**Last updated:** [November 24, 2025, 6:49pm UTC](https://www.ruby-forum.com/t/the-embarrassing-ruby-rails-subreddit-chronicles-2025-11-24/268053 "2025-11-24T18:49:17Z")

</div>

Welcome to another edition of the Embarrassing Ruby/Rails Subreddit Chronicles. Attached are screenshots for another embarrassing incident demonstrating the mean/hateful nature of Ruby/Rails subreddit members and how the…

---

## [Still no joy trying to install Tk :P](https://www.ruby-forum.com/t/still-no-joy-trying-to-install-tk-p/267558)

<div class="topic-metadata">

**Author:** [@Mynaard](https://www.ruby-forum.com/u/Mynaard)\
**Replies:** 1\
**Last updated:** [October 30, 2025, 4:08am UTC](https://www.ruby-forum.com/t/still-no-joy-trying-to-install-tk-p/267558 "2025-10-30T04:08:16Z")

</div>

Hi, all! I’ve not looked at Ruby for a few years (busy-busy with that ‘real life’ rubbish!). Anyway, I never was able to figure out how to get tk installed. Try as I might and searching various sites, including this o…

---

## [The Embarrassing Ruby/Rails Subreddit Chronicles 2025-10-09](https://www.ruby-forum.com/t/the-embarrassing-ruby-rails-subreddit-chronicles-2025-10-09/267981)

<div class="topic-metadata">

**Author:** [@AndyMaleh](https://www.ruby-forum.com/u/AndyMaleh)\
**Replies:** 0\
**Last updated:** [October 9, 2025, 10:22pm UTC](https://www.ruby-forum.com/t/the-embarrassing-ruby-rails-subreddit-chronicles-2025-10-09/267981 "2025-10-09T22:22:33Z")

</div>

This covers an interaction that happened after responding truthfully to “Dear Rubyists: Shopify Isn’t Your Enemy”. I have covered multiple times the mean discriminatory ways Ruby/Rails subreddit members treat some Rubyis…

---

## [Method dispatch in core ruby](https://www.ruby-forum.com/t/method-dispatch-in-core-ruby/267979)

<div class="topic-metadata">

**Author:** [@rolandpj](https://www.ruby-forum.com/u/rolandpj)\
**Replies:** 0\
**Last updated:** [October 8, 2025, 7:39pm UTC](https://www.ruby-forum.com/t/method-dispatch-in-core-ruby/267979 "2025-10-08T19:39:57Z")

</div>

Ruby is supposed to be truly adaptable, so good so far: class Integer def +(other) self - other end end puts 3 + 5 → -2 But trying to go deeper doesn’t seem to work: puts 2.\_\_send\_\_(:+, 3) class BasicObjec…

---

## [RGSS Ruby 1.8.1 \[RPG Maker XP\] \[SOLVED\]](https://www.ruby-forum.com/t/rgss-ruby-1-8-1-rpg-maker-xp-solved/267936)

<div class="topic-metadata">

**Author:** [@SGD](https://www.ruby-forum.com/u/SGD)\
**Replies:** 0\
**Last updated:** [September 16, 2025, 6:07pm UTC](https://www.ruby-forum.com/t/rgss-ruby-1-8-1-rpg-maker-xp-solved/267936 "2025-09-16T18:07:00Z")

</div>

EDIT: Issue has been resolved. Thread can be closed. Hello fellow coders. I am using Ruby for coding since the release of RPG Maker XP. I’ve been doing a project on and off and I am stuck at something that really annoy…

---

## [Find the indexes of the original array which has been shuffled](https://www.ruby-forum.com/t/find-the-indexes-of-the-original-array-which-has-been-shuffled/264687)

<div class="topic-metadata">

**Author:** [@cloa513](https://www.ruby-forum.com/u/cloa513)\
**Replies:** 5\
**Last updated:** [August 8, 2025, 12:28pm UTC](https://www.ruby-forum.com/t/find-the-indexes-of-the-original-array-which-has-been-shuffled/264687 "2025-08-08T12:28:50Z")

</div>

\_Typelist=\[:WATER,:FIRE,:GRASS,:ICE,:DRAGON,:PSYCHIC,:FAIRY,:ROCK,:GROUND,:FLYING,:BUG,:STEEL,:POISON,:ELECTRIC,:DARK\] @S0=\_Typelist.shuffle \_TypeNumber =\_@S0.map{=\_Typelist} So the idea is take the \_Typelist array an…

---

## [Evail and binding - where are we going wrong?](https://www.ruby-forum.com/t/evail-and-binding-where-are-we-going-wrong/267822)

<div class="topic-metadata">

**Author:** [@bkoshy](https://www.ruby-forum.com/u/bkoshy)\
**Replies:** 0\
**Last updated:** [July 14, 2025, 1:48am UTC](https://www.ruby-forum.com/t/evail-and-binding-where-are-we-going-wrong/267822 "2025-07-14T01:48:56Z")

</div>

\# test\_binding.rb expression = "-\> do result = 1 + @x puts result end" test\_lambda = -\> { @x = 1 } exp = eval(expression, test\_lambda.binding) exp.call # I am expecting to see the result 2 being puts-ed to th…

---

## [Webrick : windows : Premature end of script headers:](https://www.ruby-forum.com/t/webrick-windows-premature-end-of-script-headers/267784)

<div class="topic-metadata">

**Author:** [@dlsa](https://www.ruby-forum.com/u/dlsa)\
**Replies:** 2\
**Last updated:** [July 13, 2025, 7:04pm UTC](https://www.ruby-forum.com/t/webrick-windows-premature-end-of-script-headers/267784 "2025-07-13T19:04:33Z")

</div>

Hi, I have Ruby34-x64 with Webrick 1.9.1 on windows. I made a small cgi script below #!/usr/bin/env ruby require 'cgi' print "Content-type: text/plain\\n\\n" 5.times { |i| puts "Hello world #{i}!"} puts 'So many worlds …

---

## [Read serial from USB device](https://www.ruby-forum.com/t/read-serial-from-usb-device/267729)

<div class="topic-metadata">

**Author:** [@billr](https://www.ruby-forum.com/u/billr)\
**Replies:** 0\
**Last updated:** [May 26, 2025, 11:53pm UTC](https://www.ruby-forum.com/t/read-serial-from-usb-device/267729 "2025-05-26T23:53:40Z")

</div>

I have a device that connects to a USB port. I installed this 10 years ago and used Ruby 2.3.3. I used SerialPort to read from the device. I need to open the device, then send a string to the device and read the response…

---

## [Android app development](https://www.ruby-forum.com/t/android-app-development/190145)

<div class="topic-metadata">

**Author:** [@luckydev](https://www.ruby-forum.com/u/luckydev)\
**Replies:** 6\
**Last updated:** [December 4, 2024, 11:20am UTC](https://www.ruby-forum.com/t/android-app-development/190145 "2024-12-04T11:20:54Z")

</div>

I am excited about android and its development. I want to start the android development using ruby /Jruby. I have several doubts. With JRuby, will I be writing ruby to create apps for android ? Is JRuby stable enough…

---

## [Understanding the math of a function](https://www.ruby-forum.com/t/understanding-the-math-of-a-function/266663)

<div class="topic-metadata">

**Author:** [@bkelly13](https://www.ruby-forum.com/u/bkelly13)\
**Replies:** 0\
**Last updated:** [November 16, 2024, 2:17am UTC](https://www.ruby-forum.com/t/understanding-the-math-of-a-function/266663 "2024-11-16T02:17:31Z")

</div>

I know several languages, not Ruby. It seems that everyone who does eliptic curves uses Ruby and I am trying to understand this function. I have done multiple searches and not found the first question. Here is the code…

---

## [Ruby based spreadsheet on a Mac](https://www.ruby-forum.com/t/ruby-based-spreadsheet-on-a-mac/266652)

<div class="topic-metadata">

**Author:** [@pedzsan](https://www.ruby-forum.com/u/pedzsan)\
**Replies:** 0\
**Last updated:** [November 11, 2024, 11:51am UTC](https://www.ruby-forum.com/t/ruby-based-spreadsheet-on-a-mac/266652 "2024-11-11T11:51:13Z")

</div>

I’m toying with the idea of writing a spreadsheet program where the cells can leverage the power of Ruby if need be. I’m going to do this just on the Mac. I don’t care about Windows. I’d prefer to have the user interf…

---

## [Your Ruby Journey, Improving Ruby Skills](https://www.ruby-forum.com/t/your-ruby-journey-improving-ruby-skills/266644)

<div class="topic-metadata">

**Author:** [@stampede](https://www.ruby-forum.com/u/stampede)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 5:38pm UTC](https://www.ruby-forum.com/t/your-ruby-journey-improving-ruby-skills/266644 "2024-11-07T17:38:17Z")

</div>

I’ve been tinkering with Ruby for a while, but I feel like I’m missing a lot of key ‘computer science’ knowledge and in general I haven’t done more than systems scripting. I was wondering what other people’s journey in …

---

## [Why Ruby Requires Full Service Names?](https://www.ruby-forum.com/t/why-ruby-requires-full-service-names/266623)

<div class="topic-metadata">

**Author:** [@gilarb](https://www.ruby-forum.com/u/gilarb)\
**Replies:** 0\
**Last updated:** [October 29, 2024, 9:19am UTC](https://www.ruby-forum.com/t/why-ruby-requires-full-service-names/266623 "2024-10-29T09:19:31Z")

</div>

Hello, I am just curious why the way to call services in Ruby requires the full name, while in Python, Lua, and other scripting languages, it doesn’t needed. For example, in Ruby: def check\_services system("clear") …

---

## [Sending cookies](https://www.ruby-forum.com/t/sending-cookies/193184)

<div class="topic-metadata">

**Author:** [@Shef](https://www.ruby-forum.com/u/Shef)\
**Replies:** 1\
**Last updated:** [October 18, 2024, 8:01pm UTC](https://www.ruby-forum.com/t/sending-cookies/193184 "2024-10-18T20:01:09Z")

</div>

Can anyone show me how to send cookies with httparty? I tried sending them as part of the header in the options hash: options = { :body =\> posting\_string, :header =\> {:cookie =\> cookie} } but that got me no where. The…

---

## [Why in Rspec $stdout and STDOUT behaves differently?](https://www.ruby-forum.com/t/why-in-rspec-stdout-and-stdout-behaves-differently/266473)

<div class="topic-metadata">

**Author:** [@arup\_r](https://www.ruby-forum.com/u/arup_r)\
**Replies:** 0\
**Last updated:** [September 10, 2024, 6:34pm UTC](https://www.ruby-forum.com/t/why-in-rspec-stdout-and-stdout-behaves-differently/266473 "2024-09-10T18:34:50Z")

</div>

I have the below Ruby class, and and test which works with this piece of code. require 'logger' class MyAddKlass attr\_reader :data def my\_method(x) @data = x \* 2 logger = Logger.new($stdout) logger.in…

---

## [Reading mail messages, finding plaintext, suffering Mime-parts](https://www.ruby-forum.com/t/reading-mail-messages-finding-plaintext-suffering-mime-parts/266429)

<div class="topic-metadata">

**Author:** [@bleak\_gravel](https://www.ruby-forum.com/u/bleak_gravel)\
**Replies:** 2\
**Last updated:** [September 3, 2024, 5:49am UTC](https://www.ruby-forum.com/t/reading-mail-messages-finding-plaintext-suffering-mime-parts/266429 "2024-09-03T05:49:17Z")

</div>

How does anybody do this? 🡸 That is my question. My idea to find data in the bodies of mail addressed to a specific account (for a purpose common to the expeditor and the recipient) makes me learn stuff that I did not w…

---

## [Ruby and class constants](https://www.ruby-forum.com/t/ruby-and-class-constants/260910)

<div class="topic-metadata">

**Author:** [@luciotbc](https://www.ruby-forum.com/u/luciotbc)\
**Replies:** 3\
**Last updated:** [August 29, 2024, 12:52pm UTC](https://www.ruby-forum.com/t/ruby-and-class-constants/260910 "2024-08-29T12:52:29Z")

</div>

I have a confusion to access class constants, for example: class GoogleApi API\_ENDPOINT = 'https://www.google.com/' end I can’t understand what’s the difference between GoogleApi.API\_ENDPOINT and GoogleApi::API\_ENDPO…

---

## [How can I add an instance variable to an object after the object was initialized?](https://www.ruby-forum.com/t/how-can-i-add-an-instance-variable-to-an-object-after-the-object-was-initialized/262019)

<div class="topic-metadata">

**Author:** [@ped](https://www.ruby-forum.com/u/ped)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 1:00pm UTC](https://www.ruby-forum.com/t/how-can-i-add-an-instance-variable-to-an-object-after-the-object-was-initialized/262019 "2024-08-29T13:00:53Z")

</div>

I have an instance of a class with data and would like to extend it with some instance variables. Here is what I know: class A attr\_accessor :id attr\_accessor :description def initialize(id, description = nil) …

---

## [Change hash key based on hash value](https://www.ruby-forum.com/t/change-hash-key-based-on-hash-value/261568)

<div class="topic-metadata">

**Author:** [@sunilkumarnagoore](https://www.ruby-forum.com/u/sunilkumarnagoore)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 10:50am UTC](https://www.ruby-forum.com/t/change-hash-key-based-on-hash-value/261568 "2024-08-29T10:50:48Z")

</div>

hash = { “price”: “419.5”, “pricelevelname”: “STOCKING DEALER” } Expected Result { “price\_STOCKING DEALER”: “419.5”, “pricelevelname”: “STOCKING DEALER”, } how to achieve this

---

## [How use bash command with quotes in ruby script?](https://www.ruby-forum.com/t/how-use-bash-command-with-quotes-in-ruby-script/264424)

<div class="topic-metadata">

**Author:** [@flo](https://www.ruby-forum.com/u/flo)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 10:42am UTC](https://www.ruby-forum.com/t/how-use-bash-command-with-quotes-in-ruby-script/264424 "2024-08-29T10:42:40Z")

</div>

Hi I need to use this command on a ruby script : iwconfig 2\>/dev/null | grep -o “^\\w\*” \> cards.txt How can i use it in a ruby script ?

---

## [Why do "not" and "!" have different precedences?](https://www.ruby-forum.com/t/why-do-not-and-have-different-precedences/263941)

<div class="topic-metadata">

**Author:** [@zacrad](https://www.ruby-forum.com/u/zacrad)\
**Replies:** 3\
**Last updated:** [August 29, 2024, 10:36am UTC](https://www.ruby-forum.com/t/why-do-not-and-have-different-precedences/263941 "2024-08-29T10:36:15Z")

</div>

A big part of ruby’s design as a language is to increase readability and enhance the experience for the developers, so why does the more readable “not” have lower precedence than “!”, causing weird errors sometimes?

---

## [Determining type of an object?](https://www.ruby-forum.com/t/determining-type-of-an-object/262623)

<div class="topic-metadata">

**Author:** [@wiki](https://www.ruby-forum.com/u/wiki)\
**Replies:** 3\
**Last updated:** [August 25, 2024, 2:22pm UTC](https://www.ruby-forum.com/t/determining-type-of-an-object/262623 "2024-08-25T14:22:05Z")

</div>

How do you get the type of an object in ruby?

---

## [How to check whether a string contains a substring in Ruby](https://www.ruby-forum.com/t/how-to-check-whether-a-string-contains-a-substring-in-ruby/262614)

<div class="topic-metadata">

**Author:** [@wiki](https://www.ruby-forum.com/u/wiki)\
**Replies:** 2\
**Last updated:** [August 25, 2024, 2:42pm UTC](https://www.ruby-forum.com/t/how-to-check-whether-a-string-contains-a-substring-in-ruby/262614 "2024-08-25T14:42:34Z")

</div>

How to check whether a string contains a substring in Ruby

---

## [How to write to file in Ruby?](https://www.ruby-forum.com/t/how-to-write-to-file-in-ruby/262619)

<div class="topic-metadata">

**Author:** [@wiki](https://www.ruby-forum.com/u/wiki)\
**Replies:** 5\
**Last updated:** [August 25, 2024, 2:31pm UTC](https://www.ruby-forum.com/t/how-to-write-to-file-in-ruby/262619 "2024-08-25T14:31:57Z")

</div>

How to write to file in Ruby?

---

## [\[gem “Mail”\] Cannot compose boundary for Mail::Body.split!](https://www.ruby-forum.com/t/gem-mail-cannot-compose-boundary-for-mail-body-split/264994)

<div class="topic-metadata">

**Author:** [@bleak\_gravel](https://www.ruby-forum.com/u/bleak_gravel)\
**Replies:** 1\
**Last updated:** [August 24, 2024, 4:29am UTC](https://www.ruby-forum.com/t/gem-mail-cannot-compose-boundary-for-mail-body-split/264994 "2024-08-24T04:29:23Z")

</div>

Good morning My first post in this forum concerns mail 2.8.1 with Ruby 3.1.2p20 I appear to be unable to split a mail-body into parts. From what I read in body.rb from the Mail gem, a Regexp is created from my String-a…

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