# Ruby

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

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

---

## [Is there any nomenclature for private methods?](https://www.ruby-forum.com/t/is-there-any-nomenclature-for-private-methods/135797)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 11\
**Last updated:** [April 25, 2008, 3:56pm UTC](https://www.ruby-forum.com/t/is-there-any-nomenclature-for-private-methods/135797 "2008-04-25T15:56:29Z")

</div>

Hi, I don’t like the way of declaring publi and private methods since it’s not really clear. AFAIK there are you ways: class C def public\_1 end def public\_2 end private: def private\_1 end public: def publ…

---

## [This can't be right](https://www.ruby-forum.com/t/this-cant-be-right/135745)

<div class="topic-metadata">

**Author:** [@stefankroes](https://www.ruby-forum.com/u/stefankroes)\
**Replies:** 10\
**Last updated:** [April 25, 2008, 2:37pm UTC](https://www.ruby-forum.com/t/this-cant-be-right/135745 "2008-04-25T14:37:41Z")

</div>

Hi all, I’m pretty new to Ruby and RoR but I’m trying to learn for a large project. I wrote the following method in one of my models but it can’t be the right way to do this because ruby should be able to do it way m…

---

## ["alias name objetc.method" not allowed?](https://www.ruby-forum.com/t/alias-name-objetc-method-not-allowed/135833)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 5\
**Last updated:** [April 25, 2008, 2:07pm UTC](https://www.ruby-forum.com/t/alias-name-objetc-method-not-allowed/135833 "2008-04-25T14:07:23Z")

</div>

Hi, I’ve a method that returns an object: def object return @object end That @object is a object of class MyObject containing methods: class MyObject def hello “helloooooooo” end end And I’d like to do: def o…

---

## [OpenSSL::SSL::SSLContext#set\_params](https://www.ruby-forum.com/t/openssl-sslcontext-set-params/134808)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 4\
**Last updated:** [April 25, 2008, 1:13pm UTC](https://www.ruby-forum.com/t/openssl-sslcontext-set-params/134808 "2008-04-25T13:13:41Z")

</div>

e$B@\>;3OB9-$G$9!#e(B lib/net/smtp.rbe$B$NJ}$Oe(Btrunke$B$N$b$N$r$=$N$^$^%3%T!\<$7$Fe(Bruby\_1\_8e$B$Ge(B SMTP over SSLe$B$be(BSTARTTLSe$B$b;H$($k$3$H$,3NG’$G$-$?$N$G$9$,!"e(B lib/net/pop.rbe$B$NJ}$Oe(BOpenSSL::SSL::SSLCo…

---

## [EOF Behaviour](https://www.ruby-forum.com/t/eof-behaviour/135829)

<div class="topic-metadata">

**Author:** [@vanderkerkoff](https://www.ruby-forum.com/u/vanderkerkoff)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 1:01pm UTC](https://www.ruby-forum.com/t/eof-behaviour/135829 "2008-04-25T13:01:37Z")

</div>

Hello everyone I’m sending an event to google calendar from my ruby code. I got it all working lovely with ClirntLogin, but you need to get it working with their AuthSub authentication mechanism for it to be of any r…

---

## [Pointer concept in Ruby?](https://www.ruby-forum.com/t/pointer-concept-in-ruby/135756)

<div class="topic-metadata">

**Author:** [@ISSSSaki\_Baz\_C](https://www.ruby-forum.com/u/ISSSSaki_Baz_C)\
**Replies:** 15\
**Last updated:** [April 25, 2008, 11:10am UTC](https://www.ruby-forum.com/t/pointer-concept-in-ruby/135756 "2008-04-25T11:10:11Z")

</div>

Hi, I’d like to have a variable pointing to a Hash/Array element, so if I modify the variable then the Hash/Array element is modified too. AFAIK this is not possible with Ruby since the abscense of pointer concept. I …

---

## [$B%G%6%$%s%\_!\<%F%#%s%0(B](https://www.ruby-forum.com/t/b-g-6-s-f-s-0-b/135697)

<div class="topic-metadata">

**Author:** [@Yukihiro\_M](https://www.ruby-forum.com/u/Yukihiro_M)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 11:08am UTC](https://www.ruby-forum.com/t/b-g-6-s-f-s-0-b/135697 "2008-04-25T11:08:21Z")

</div>

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B e$B:#=5$N7nMKF|e(B(22e$BF|e(B)e$B$K!"Bh#12s$H$J$k%G%6%$%s%\_!\<%F%#%s%0$,e(BIRC e$B\>e$G3+:E$5$l$^$7$?!#$3$l$O3F\<oe(BRubye$B\<BAu\<T$rCf?4$K8@8l;EMM$d@e(B e$B7W$J$I$K$D$$$F;~4V$r7h$a$F8l$j…

---

## [Ruby1.9, instance\_eval and private methods](https://www.ruby-forum.com/t/ruby1-9-instance-eval-and-private-methods/135734)

<div class="topic-metadata">

**Author:** [@Victor\_SZverokS\_She](https://www.ruby-forum.com/u/Victor_SZverokS_She)\
**Replies:** 5\
**Last updated:** [April 25, 2008, 10:48am UTC](https://www.ruby-forum.com/t/ruby1-9-instance-eval-and-private-methods/135734 "2008-04-25T10:48:40Z")

</div>

Can somebody please explain this: class A end blk = proc do def test puts ‘test’ end end a1 = A.new a1.instance\_eval &blk a1.test #=\> prints “test” def indirect(a, &blk) a.instance\_eval &blk end a2 = A.new …

---

## [Ruby 1.8.7-preview2 has been released](https://www.ruby-forum.com/t/ruby-1-8-7-preview2-has-been-released/135281)

<div class="topic-metadata">

**Author:** [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Replies:** 2\
**Last updated:** [April 25, 2008, 9:10am UTC](https://www.ruby-forum.com/t/ruby-1-8-7-preview2-has-been-released/135281 "2008-04-25T09:10:06Z")

</div>

ã€€Ruby 1.8.7-preview2 ã‚’ãƒªãƒªãƒ¼ã‚¹ã—ã¾ã—ãŸã€‚åœŸæ›œæ—¥ã®äºˆå®šã§ã—ãŸãŒã€ æ°—ã«ãªã‚‹å•é¡ŒãŒç›´å‰ã«ç™ºç”Ÿã—é…ã‚Œã¦ã—ã¾ã„ã¾ã—ãŸã€‚ ã€€äº’æ›æ€§ã‚’å«ã‚ã€ preview1 ä»¥é™è¦‹ã¤ã‹ã£ãŸå•é¡Œ…

---

## [Seo's patch for building on mono](https://www.ruby-forum.com/t/seos-patch-for-building-on-mono/135777)

<div class="topic-metadata">

**Author:** [@John\_LSSIRONRUBY](https://www.ruby-forum.com/u/John_LSSIRONRUBY)\
**Replies:** 1\
**Last updated:** [April 25, 2008, 7:49am UTC](https://www.ruby-forum.com/t/seos-patch-for-building-on-mono/135777 "2008-04-25T07:49:52Z")

</div>

FYI I’m accepting part of the patch only. This won’t be accepted - if folks want this to compile under Mono, please submit a patch that fixes this correctly (new defines etc). Index: src/microsoft.scripting.core/shell…

---

## [Bj 1.0.1 -- can I rerun jobs that have had errors](https://www.ruby-forum.com/t/bj-1-0-1-can-i-rerun-jobs-that-have-had-errors/135806)

<div class="topic-metadata">

**Author:** [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 5:45am UTC](https://www.ruby-forum.com/t/bj-1-0-1-can-i-rerun-jobs-that-have-had-errors/135806 "2008-04-25T05:45:40Z")

</div>

ara, Backgroundjob works great – Thanks! I have about 40 jobs in the job table that have errors and I’d like to rerun them because I’ve fixed the condition which caused the error. Is there a way to re-run them using …

---

## [Manipulating Silverlight controls dynamically from IronRuby - is it currently possible?](https://www.ruby-forum.com/t/manipulating-silverlight-controls-dynamically-from-ironruby-is-it-currently-possible/134161)

<div class="topic-metadata">

**Author:** [@thbar](https://www.ruby-forum.com/u/thbar)\
**Replies:** 3\
**Last updated:** [April 25, 2008, 5:34am UTC](https://www.ruby-forum.com/t/manipulating-silverlight-controls-dynamically-from-ironruby-is-it-currently-possible/134161 "2008-04-25T05:34:34Z")

</div>

Hi, Is it currently possible to add children to an existing Silverlight control from the ruby code side ? (like in the IronPython version seen on http://www.voidspace.org.uk/ironpython/webide/webide.html - great stuf…

---

## [Puts "\\\\".gsub("\\\\", "\\\\\\\\")](https://www.ruby-forum.com/t/puts-gsub/135710)

<div class="topic-metadata">

**Author:** [@martinus](https://www.ruby-forum.com/u/martinus)\
**Replies:** 4\
**Last updated:** [April 25, 2008, 5:15am UTC](https://www.ruby-forum.com/t/puts-gsub/135710 "2008-04-25T05:15:50Z")

</div>

Hello, I have a mini-ruby quiz. Guess what this line of code writes to the console, then try it for yourself: puts “\\”.gsub("\\", “\\\\”) Why is that so? Martin

---

## [How can I organize my project in the best way?](https://www.ruby-forum.com/t/how-can-i-organize-my-project-in-the-best-way/135460)

<div class="topic-metadata">

**Author:** [@Christoffer\_LernSSS](https://www.ruby-forum.com/u/Christoffer_LernSSS)\
**Replies:** 5\
**Last updated:** [April 25, 2008, 4:48am UTC](https://www.ruby-forum.com/t/how-can-i-organize-my-project-in-the-best-way/135460 "2008-04-25T04:48:22Z")

</div>

I’m writing a server for a networked game using ruby, but I keep running into issues when organizing them. Basically I have a structure looking a bit like this: lib/ testclient/ gamemodel/ gamecommands/ server/ u…

---

## [Re: Running activerecord](https://www.ruby-forum.com/t/re-running-activerecord/135803)

<div class="topic-metadata">

**Author:** [@Brian\_Blackwell](https://www.ruby-forum.com/u/Brian_Blackwell)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 3:25am UTC](https://www.ruby-forum.com/t/re-running-activerecord/135803 "2008-04-25T03:25:42Z")

</div>

On Fri, 18 Apr 2008 15:56:32 -0700, “John L. (IRONRUBY)” removed\_email\_address@domain.invalid said: Thanks for doing this work, Brian! This will give me a bunch of things to look at around the core libs this weekend. …

---

## [Works thro irb but not on commandline](https://www.ruby-forum.com/t/works-thro-irb-but-not-on-commandline/135783)

<div class="topic-metadata">

**Author:** [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Replies:** 7\
**Last updated:** [April 25, 2008, 2:13am UTC](https://www.ruby-forum.com/t/works-thro-irb-but-not-on-commandline/135783 "2008-04-25T02:13:12Z")

</div>

i have a strange prob. when i run this code under irb, the buddy can recieve the message. when i run it under the ruby commandline, the buddy does not recive the message. i am not sure what the difference is. any poi…

---

## [\[ANN\] CruiseControl.rb 1.3.0](https://www.ruby-forum.com/t/ann-cruisecontrol-rb-1-3-0/135798)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 1:28am UTC](https://www.ruby-forum.com/t/ann-cruisecontrol-rb-1-3-0/135798 "2008-04-25T01:28:44Z")

</div>

Dear all, CruiseControl.rb is a continuous integration tool. Its basic purpose in life is to alert members of a software project when one of them checks something into source control that breaks the build. CC.rb is e…

---

## [REXML cannot handle apostrophes?](https://www.ruby-forum.com/t/rexml-cannot-handle-apostrophes/135667)

<div class="topic-metadata">

**Author:** [@stedwick](https://www.ruby-forum.com/u/stedwick)\
**Replies:** 6\
**Last updated:** [April 25, 2008, 12:41am UTC](https://www.ruby-forum.com/t/rexml-cannot-handle-apostrophes/135667 "2008-04-25T00:41:20Z")

</div>

I have this line in my XML file that was created by REXML And I simply cannot access that element using REXML, at all, in any way, no matter what, as far as I can tell… I have tried escaping the apostrophes, I have t…

---

## [Writing Math symbols in WinXP machine - How?](https://www.ruby-forum.com/t/writing-math-symbols-in-winxp-machine-how/135792)

<div class="topic-metadata">

**Author:** [@RichardOnRails](https://www.ruby-forum.com/u/RichardOnRails)\
**Replies:** 0\
**Last updated:** [April 25, 2008, 12:31am UTC](https://www.ruby-forum.com/t/writing-math-symbols-in-winxp-machine-how/135792 "2008-04-25T00:31:22Z")

</div>

Hi, I found a .NET site that Pi is Unicode-16 0x03A0) & Sigma is 0xH03A3. I’d like to use them in a Ruby program generating Windows output (an .rbx program). This site contains a lot of what I’d like: http://www.ast…

---

## [On Enterprise Ruby](https://www.ruby-forum.com/t/on-enterprise-ruby/90258)

<div class="topic-metadata">

**Author:** [@alexeyv](https://www.ruby-forum.com/u/alexeyv)\
**Replies:** 62\
**Last updated:** [April 25, 2008, 12:23am UTC](https://www.ruby-forum.com/t/on-enterprise-ruby/90258 "2008-04-25T00:23:58Z")

</div>

Q: What the hell is “Enterprise Ruby” anyway? A: Yet another ‘stack’ of crap so complex that any salesperson can use Steak and Strippers to easily sell it to management thanks to the bikeshedding effect. – Zed S. (a…

---

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

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 3\
**Last updated:** [April 24, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/dynamic-class/135755 "2008-04-24T23:37:27Z")

</div>

Hi All, In controller i have one method like def create\_class Object.const\_get("Array").new end I Ruby forums i cam to know that will create a class called Array.Am i right?? Now my question is that where is…

---

## [Some metaprogramming with define\_method](https://www.ruby-forum.com/t/some-metaprogramming-with-define-method/135786)

<div class="topic-metadata">

**Author:** [@phil](https://www.ruby-forum.com/u/phil)\
**Replies:** 1\
**Last updated:** [April 24, 2008, 11:35pm UTC](https://www.ruby-forum.com/t/some-metaprogramming-with-define-method/135786 "2008-04-24T23:35:42Z")

</div>

Hello, I was hoping that the following snippet would output test\_method instead it raises an ‘undefined method’. module Proxy def self.append\_features(mod) mod.extend(ClassMethods) end module ClassMethods def …

---

## [How to add function parameter and conditions dynamically?](https://www.ruby-forum.com/t/how-to-add-function-parameter-and-conditions-dynamically/135719)

<div class="topic-metadata">

**Author:** [@varunkumargoel](https://www.ruby-forum.com/u/varunkumargoel)\
**Replies:** 1\
**Last updated:** [April 24, 2008, 11:31pm UTC](https://www.ruby-forum.com/t/how-to-add-function-parameter-and-conditions-dynamically/135719 "2008-04-24T23:31:35Z")

</div>

Hi All, I have one function in that function i wanna add parameters and conditions dynamically. I hope you got me if yes please tell me what should i do. Thanks Varun K.

---

## [Question about array.each{|x| delete x}](https://www.ruby-forum.com/t/question-about-array-each-x-delete-x/135701)

<div class="topic-metadata">

**Author:** [@Frisco\_Del\_R](https://www.ruby-forum.com/u/Frisco_Del_R)\
**Replies:** 3\
**Last updated:** [April 24, 2008, 11:21pm UTC](https://www.ruby-forum.com/t/question-about-array-each-x-delete-x/135701 "2008-04-24T23:21:01Z")

</div>

myArray = \[1, 2, 3\] puts myArray myArray.each {|x| if x == 1 then puts “one” elsif x == 2 then myArray.delete x elsif x == 3 then puts “three” end } puts myArray The output of the above is: 1 2 3 one 1 …

---

## [Function appends same value to string based on number of function calls](https://www.ruby-forum.com/t/function-appends-same-value-to-string-based-on-number-of-function-calls/135768)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 8\
**Last updated:** [April 24, 2008, 9:05pm UTC](https://www.ruby-forum.com/t/function-appends-same-value-to-string-based-on-number-of-function-calls/135768 "2008-04-24T21:05:46Z")

</div>

Hi Guys, Is this default ruby behaviour or is this a bug? Based on the number of call to Testappend::get\_some\_value, the string “-New Value” is appended x number of times. If you first assign value = ‘’ instead of va…

---

## [Email/SMTP::NET Problems](https://www.ruby-forum.com/t/email-smtp-net-problems/135673)

<div class="topic-metadata">

**Author:** [@cage9d9](https://www.ruby-forum.com/u/cage9d9)\
**Replies:** 25\
**Last updated:** [April 24, 2008, 8:57pm UTC](https://www.ruby-forum.com/t/email-smtp-net-problems/135673 "2008-04-24T20:57:03Z")

</div>

Greetings, This is my first time posting but this problem I am having is really annoying. Here is a section of my code: fname = cgi\[‘fname’\] lname = cgi\[‘lname’\] pw = cgi\[‘password’\] em = cgi\[‘email’\] buf = “ ” m…

---

## [Xmlrpc client (HttpBadResponse error)](https://www.ruby-forum.com/t/xmlrpc-client-httpbadresponse-error/135766)

<div class="topic-metadata">

**Author:** [@nateleavitt](https://www.ruby-forum.com/u/nateleavitt)\
**Replies:** 3\
**Last updated:** [April 24, 2008, 8:55pm UTC](https://www.ruby-forum.com/t/xmlrpc-client-httpbadresponse-error/135766 "2008-04-24T20:55:05Z")

</div>

Hey guys… I’m having some issues connecting to an xmlrpc server. Here is my code below: require “xmlrpc/client” server = XMLRPC::Client.new(“webservice.com”, “/api/xmlrpc”, 443) result = server.call(‘ContactService.l…

---

## [Traits-1.9.1 released](https://www.ruby-forum.com/t/traits-1-9-1-released/135770)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [April 24, 2008, 8:07pm UTC](https://www.ruby-forum.com/t/traits-1-9-1-released/135770 "2008-04-24T20:07:57Z")

</div>

Hi list motivated by a recent discussion on this list and in order to be functionally compatible with #is\_a? for modules I have added Object#behaves\_like?. I did not want to overload Object#is\_a? because traits do no…

---

## [Triangle Area (#160)](https://www.ruby-forum.com/t/triangle-area-160/135750)

<div class="topic-metadata">

**Author:** [@mansfiem](https://www.ruby-forum.com/u/mansfiem)\
**Replies:** 1\
**Last updated:** [April 24, 2008, 6:44pm UTC](https://www.ruby-forum.com/t/triangle-area-160/135750 "2008-04-24T18:44:15Z")

</div>

Calculating the area of a triangle is a long solved problem with well-known solutions. I mentioned a few possible techniques in the quiz; almost everyone provided short, simple, exact solutions, which I’ll go over in…

---

## [New Towards Rails WIKI page](https://www.ruby-forum.com/t/new-towards-rails-wiki-page/135735)

<div class="topic-metadata">

**Author:** [@Wayne\_K](https://www.ruby-forum.com/u/Wayne_K)\
**Replies:** 3\
**Last updated:** [April 24, 2008, 6:14pm UTC](https://www.ruby-forum.com/t/new-towards-rails-wiki-page/135735 "2008-04-24T18:14:03Z")

</div>

I’ve created a new WIKI page at http://ironruby.rubyforge.org/wiki/wiki.pl?TowardsRails to summarize the current progress towards executing Gems and Rails. It contains a priority list of unresolved bugs, unimplemented…

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

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