# Ruby

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

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

---

## [Code Review: hangs in core\\thread](https://www.ruby-forum.com/t/code-review-hangs-in-core-thread/157087)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 5\
**Last updated:** [January 8, 2009, 8:53pm UTC](https://www.ruby-forum.com/t/code-review-hangs-in-core-thread/157087 "2009-01-08T20:53:55Z")

</div>

tfpt review “/shelveset:hangs;REDMOND\\sborde” Comment : Non-deterministic fixes. I ran all the core\\thread specs in a loop in multiple processes and ran into a few non-deterministic failures. This change fixes every…

---

## [Calling Ruby from C/C++](https://www.ruby-forum.com/t/calling-ruby-from-c-c/157233)

<div class="topic-metadata">

**Author:** [@mr\_tibs](https://www.ruby-forum.com/u/mr_tibs)\
**Replies:** 5\
**Last updated:** [January 8, 2009, 8:05pm UTC](https://www.ruby-forum.com/t/calling-ruby-from-c-c/157233 "2009-01-08T20:05:47Z")

</div>

Hi, Is there a way to execute Ruby code from C/C++? I know it is possible to call Tcl code from C/C++; the Tcl library provides a Tcl\_CreateInterp() function which creates an in-process interpreter running the Tcl co…

---

## [Require my assembly](https://www.ruby-forum.com/t/require-my-assembly/157243)

<div class="topic-metadata">

**Author:** [@veganopolis](https://www.ruby-forum.com/u/veganopolis)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 8:02pm UTC](https://www.ruby-forum.com/t/require-my-assembly/157243 "2009-01-08T20:02:14Z")

</div>

Hi, I’m new to IronRuby. I’m trying to require a .net assembly but I have the following error message. Any help will be very much appreciated. Note : MyApp.Application.dll references MyApp.Core.dll and both are in the…

---

## [Resolving a bug on RubyForge](https://www.ruby-forum.com/t/resolving-a-bug-on-rubyforge/157235)

<div class="topic-metadata">

**Author:** [@Shri\_B](https://www.ruby-forum.com/u/Shri_B)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 7:37pm UTC](https://www.ruby-forum.com/t/resolving-a-bug-on-rubyforge/157235 "2009-01-08T19:37:57Z")

</div>

What is the process for resolving a fixed bug? If I mark it as closed, Jim, will you get a chance to verify that it is actually fixed and to ensure that there is sufficient test coverage for the immediate issue as wel…

---

## [Can I get a little help with my program? (string searching and regex)](https://www.ruby-forum.com/t/can-i-get-a-little-help-with-my-program-string-searching-and-regex/157237)

<div class="topic-metadata">

**Author:** [@unknown](https://www.ruby-forum.com/u/unknown)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 7:15pm UTC](https://www.ruby-forum.com/t/can-i-get-a-little-help-with-my-program-string-searching-and-regex/157237 "2009-01-08T19:15:34Z")

</div>

So here’s my issue, I’m trying to figure out a way that’s not insanely round about to accomplish the following. I am ripping book information off of a website. I was able to do this quite easy, but i’m having problems…

---

## [Spec Coverage](https://www.ruby-forum.com/t/spec-coverage/157234)

<div class="topic-metadata">

**Author:** [@raker\_t](https://www.ruby-forum.com/u/raker_t)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/spec-coverage/157234 "2009-01-08T19:12:03Z")

</div>

Just to let people know where we are: ruby core 1118 files, 4850 examples, 18036 expectations, 82 failures, 219 errors 1118 files, 4731 examples, 15341 expectations, 520 failures, 724 errors 14097/18063 = 78.0 ruby …

---

## [Problem calling explicit interface methods](https://www.ruby-forum.com/t/problem-calling-explicit-interface-methods/157197)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 6\
**Last updated:** [January 8, 2009, 7:12pm UTC](https://www.ruby-forum.com/t/problem-calling-explicit-interface-methods/157197 "2009-01-08T19:12:03Z")

</div>

Hello, I am trying to call explicitly implemented interface method, but get such error undefined method \`bar’ for #App::Cls:0x000005c C# code: public interface IFoo { void Bar(); } public class Cls : IFoo { …

---

## [Does instance\_eval passes self as block argument?](https://www.ruby-forum.com/t/does-instance-eval-passes-self-as-block-argument/157211)

<div class="topic-metadata">

**Author:** [@LAMBEAU\_Bernard](https://www.ruby-forum.com/u/LAMBEAU_Bernard)\
**Replies:** 9\
**Last updated:** [January 8, 2009, 6:08pm UTC](https://www.ruby-forum.com/t/does-instance-eval-passes-self-as-block-argument/157211 "2009-01-08T18:08:01Z")

</div>

Ruby’s documentation of instance\_eval shows the “signature” of instance\_eval as: obj.instance\_eval {| | block } =\> obj I assume that the block should not take any argument. However, if I write the following code: cl…

---

## [Problem calling CLR method](https://www.ruby-forum.com/t/problem-calling-clr-method/157167)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 6:06pm UTC](https://www.ruby-forum.com/t/problem-calling-clr-method/157167 "2009-01-08T18:06:39Z")

</div>

Hello, I can’t call the object’s method, thought it exists. My ruby script: Let’s dump .Net methods far.get\_type.get\_methods.each { |m| p m.name } Try to call ‘RegisterTool’ method begin far.register\_tool rescue =\>…

---

## [Testng with ruby](https://www.ruby-forum.com/t/testng-with-ruby/157220)

<div class="topic-metadata">

**Author:** [@shekarls](https://www.ruby-forum.com/u/shekarls)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 5:35pm UTC](https://www.ruby-forum.com/t/testng-with-ruby/157220 "2009-01-08T17:35:04Z")

</div>

All, I am planning to Setup Automation framework consisting of following : Selenium RC with ruby Testng Ant Question 1: I would want to know what is the equivalent of : import org.testng.annotations.\*; import …

---

## [Enumerate CLR methods](https://www.ruby-forum.com/t/enumerate-clr-methods/157165)

<div class="topic-metadata">

**Author:** [@alex\_2k8](https://www.ruby-forum.com/u/alex_2k8)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/enumerate-clr-methods/157165 "2009-01-08T17:05:41Z")

</div>

Hello, How to enumerate the CLR object methods? I whould like to write some thing like this: require ‘System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089’ include System::Windows…

---

## [Docs using hpricot with xml including 'CDATA'?](https://www.ruby-forum.com/t/docs-using-hpricot-with-xml-including-cdata/157221)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 4:31pm UTC](https://www.ruby-forum.com/t/docs-using-hpricot-with-xml-including-cdata/157221 "2009-01-08T16:31:50Z")

</div>

Anyone know where I can get informatin on how to use hpricot on xml data that will include the xml unparsed CDATA? I have a program that reads in XML fine however, if the XML file includes CDATA…well it errors out on …

---

## [Regular expression question - using 'not' logic with it](https://www.ruby-forum.com/t/regular-expression-question-using-not-logic-with-it/157217)

<div class="topic-metadata">

**Author:** [@mmcolli00](https://www.ruby-forum.com/u/mmcolli00)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 4:25pm UTC](https://www.ruby-forum.com/t/regular-expression-question-using-not-logic-with-it/157217 "2009-01-08T16:25:35Z")

</div>

I know this is probably so easy, but I just can’t find any documentation on it because it is not character class value. If 4 specific values exists, I do not want to output anything. How can I check that these values …

---

## [How to return an unmodifiable but nor frozen array?](https://www.ruby-forum.com/t/how-to-return-an-unmodifiable-but-nor-frozen-array/157212)

<div class="topic-metadata">

**Author:** [@LAMBEAU\_Bernard](https://www.ruby-forum.com/u/LAMBEAU_Bernard)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 3:05pm UTC](https://www.ruby-forum.com/t/how-to-return-an-unmodifiable-but-nor-frozen-array/157212 "2009-01-08T15:05:29Z")

</div>

Hi, Is there a mean to obtain an unmodifiable array which is not frozen? Assume you’re implementing a directed graph with adjacency lists. A node would like to expose it’s outgoing edges (to let users enjoy its enume…

---

## [Httpclient 2.1.3-RC](https://www.ruby-forum.com/t/httpclient-2-1-3-rc/155739)

<div class="topic-metadata">

**Author:** [@NAKAMURAS\_Hiroshi](https://www.ruby-forum.com/u/NAKAMURAS_Hiroshi)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 2:23pm UTC](https://www.ruby-forum.com/t/httpclient-2-1-3-rc/155739 "2009-01-08T14:23:01Z")

</div>

Hi all, I’m working on releasing httpclient/2.1.3. ‘httpclient’ gives something like the functionality of libwww-perl (LWP) in Ruby. ‘httpclient’ formerly known as ‘http-access2’. See http://dev.ctor.org/httpclient…

---

## [Rails and Merb: Itâ€™s All at Acts As Conference 200 9](https://www.ruby-forum.com/t/rails-and-merb-ita-s-all-at-acts-as-conference-200-9/196874)

<div class="topic-metadata">

**Author:** [@flatekmonkey](https://www.ruby-forum.com/u/flatekmonkey)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 2:15pm UTC](https://www.ruby-forum.com/t/rails-and-merb-ita-s-all-at-acts-as-conference-200-9/196874 "2009-01-08T14:15:55Z")

</div>

Hi everyone, Acts as Conference 2009 (http://www.actsasconference.com) is just around the corner, and things are heating up. I am sure that everyone has heard that Rails and Merb are coming together for Rails 3. We’re …

---

## [Can you guess what it will be happened?](https://www.ruby-forum.com/t/can-you-guess-what-it-will-be-happened/157201)

<div class="topic-metadata">

**Author:** [@Jun\_YSKim](https://www.ruby-forum.com/u/Jun_YSKim)\
**Replies:** 10\
**Last updated:** [January 8, 2009, 1:11pm UTC](https://www.ruby-forum.com/t/can-you-guess-what-it-will-be-happened/157201 "2009-01-08T13:11:08Z")

</div>

Hi. all there are two array. a = \[1, 2\] b = \[3, 4\] When I execute the following statement, what can you guess as a result? irb:$\> a.insert(a.length, \*b) very funny :slight\_smile:

---

## [Puzzling behaviour with range](https://www.ruby-forum.com/t/puzzling-behaviour-with-range/157125)

<div class="topic-metadata">

**Author:** [@puffer\_ape](https://www.ruby-forum.com/u/puffer_ape)\
**Replies:** 6\
**Last updated:** [January 8, 2009, 12:30pm UTC](https://www.ruby-forum.com/t/puzzling-behaviour-with-range/157125 "2009-01-08T12:30:39Z")

</div>

Hi all! I’ve been over (some of) the documentation, and I can’t figure this one out, can anyone tell me what range is expecting? And, why it’s behavior is different from other numerics? $ ruby -v ruby 1.8.6 (2007-09…

---

## [Unsubscribe](https://www.ruby-forum.com/t/unsubscribe/157196)

<div class="topic-metadata">

**Author:** [@Miroslav\_Dolic](https://www.ruby-forum.com/u/Miroslav_Dolic)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 11:10am UTC](https://www.ruby-forum.com/t/unsubscribe/157196 "2009-01-08T11:10:43Z")

</div>

unsubscribe

---

## [Click on popup/dailog box in watir](https://www.ruby-forum.com/t/click-on-popup-dailog-box-in-watir/157195)

<div class="topic-metadata">

**Author:** [@narendra](https://www.ruby-forum.com/u/narendra)\
**Replies:** 0\
**Last updated:** [January 8, 2009, 10:55am UTC](https://www.ruby-forum.com/t/click-on-popup-dailog-box-in-watir/157195 "2009-01-08T10:55:01Z")

</div>

hi, I 'm unable to click on popup/dailog box in watir, can you plz help me out. Now i 'm using this statement for the click on option “OK” for the attached popup. Watir.autoit.Send"OK" Thanks, Narendra

---

## [Strange behavior with a little racks app in thin](https://www.ruby-forum.com/t/strange-behavior-with-a-little-racks-app-in-thin/157107)

<div class="topic-metadata">

**Author:** [@saboteur](https://www.ruby-forum.com/u/saboteur)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 10:51am UTC](https://www.ruby-forum.com/t/strange-behavior-with-a-little-racks-app-in-thin/157107 "2009-01-08T10:51:15Z")

</div>

Hi, I’m playing with thin and racks at the moment. I tried to built a really basic application: test.ru content=\[“Is it working? blublublub”\] app = proc do |env| \[ 200, # Status code { # Res…

---

## [Tictactoe and choice](https://www.ruby-forum.com/t/tictactoe-and-choice/157158)

<div class="topic-metadata">

**Author:** [@andrea](https://www.ruby-forum.com/u/andrea)\
**Replies:** 4\
**Last updated:** [January 8, 2009, 10:09am UTC](https://www.ruby-forum.com/t/tictactoe-and-choice/157158 "2009-01-08T10:09:49Z")

</div>

I was trying to code the classic tictactoe in ruby. Now it only plays itself doing random moves until someone wins, and there are still some bugs. But the thing that really I don’t understand is another, With this l…

---

## [About singleton\_methods](https://www.ruby-forum.com/t/about-singleton-methods/157182)

<div class="topic-metadata">

**Author:** [@Kyung\_won\_C](https://www.ruby-forum.com/u/Kyung_won_C)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 10:06am UTC](https://www.ruby-forum.com/t/about-singleton-methods/157182 "2009-01-08T10:06:16Z")

</div>

class A class \<\< A def aaa end protected def bbb end private def ccc end end end p A.singleton\_methods # =\> \[“aaa”, “bbb”\] private method is not a singleton method… Why? Anyway ‘ccc’ is defined in a singleton cl…

---

## [How to check user name and password for Linux accounts](https://www.ruby-forum.com/t/how-to-check-user-name-and-password-for-linux-accounts/157175)

<div class="topic-metadata">

**Author:** [@youhaodeyi](https://www.ruby-forum.com/u/youhaodeyi)\
**Replies:** 3\
**Last updated:** [January 8, 2009, 8:11am UTC](https://www.ruby-forum.com/t/how-to-check-user-name-and-password-for-linux-accounts/157175 "2009-01-08T08:11:12Z")

</div>

Can ruby check user name and password the same way as Linux OS? I use “ypcat passwd” to list all users and its encrypted password. I want users to input their user name and password to ruby and let ruby the check its …

---

## [Newbie automation testing web services with ruby](https://www.ruby-forum.com/t/newbie-automation-testing-web-services-with-ruby/157057)

<div class="topic-metadata">

**Author:** [@Lucas\_Winstanley](https://www.ruby-forum.com/u/Lucas_Winstanley)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 7:43am UTC](https://www.ruby-forum.com/t/newbie-automation-testing-web-services-with-ruby/157057 "2009-01-08T07:43:25Z")

</div>

Hi all, First post on this group and I hope you guys are as helpful as the other guys have been for me on the watir group. Fingers crossed. I have been successfully making HTTP POST protocol requests via an in house …

---

## [Method def](https://www.ruby-forum.com/t/method-def/157049)

<div class="topic-metadata">

**Author:** [@anita](https://www.ruby-forum.com/u/anita)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 7:41am UTC](https://www.ruby-forum.com/t/method-def/157049 "2009-01-08T07:41:02Z")

</div>

I know def active? but I need: def active=(val) and I cannot find a good example for it. I need val to equal a certain value different that true or false when user is active. Thank you, Anita

---

## [\[Bug #989\] \[1.8.6\] Crash during build on Mac OS 10.5.3/PPC when configured with --enable-pthread](https://www.ruby-forum.com/t/bug-989-1-8-6-crash-during-build-on-mac-os-10-5-3-ppc-when-configured-with-enable-pthread/157106)

<div class="topic-metadata">

**Author:** [@Kazuhiro\_NISHIYAMA](https://www.ruby-forum.com/u/Kazuhiro_NISHIYAMA)\
**Replies:** 2\
**Last updated:** [January 8, 2009, 7:39am UTC](https://www.ruby-forum.com/t/bug-989-1-8-6-crash-during-build-on-mac-os-10-5-3-ppc-when-configured-with-enable-pthread/157106 "2009-01-08T07:39:00Z")

</div>

Bug #989: \[1.8.6\] Crash during build on Mac OS 10.5.3/PPC when configured with --enable-pthread http://redmine.ruby-lang.org/issues/show/989 e$B5/I\<\<Te(B: Kazuhiro NISHIYAMA e$B%9%F!\<%?%9e(B: Open, e$BM%@hEYe(B: Norm…

---

## [Replace HTML Problem](https://www.ruby-forum.com/t/replace-html-problem/157126)

<div class="topic-metadata">

**Author:** [@mvanhouten](https://www.ruby-forum.com/u/mvanhouten)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 7:37am UTC](https://www.ruby-forum.com/t/replace-html-problem/157126 "2009-01-08T07:37:11Z")

</div>

I am using the in\_place\_editor\_field method with scriptaculous and I am receiving the rjs code instead of the value that was just updated. The following is the code snippet from my view: \<%= in\_place\_editor\_field('r…

---

## [Conditionally Including Methods From A Module?](https://www.ruby-forum.com/t/conditionally-including-methods-from-a-module/151770)

<div class="topic-metadata">

**Author:** [@kenny](https://www.ruby-forum.com/u/kenny)\
**Replies:** 4\
**Last updated:** [January 8, 2009, 7:33am UTC](https://www.ruby-forum.com/t/conditionally-including-methods-from-a-module/151770 "2009-01-08T07:33:08Z")

</div>

Is there a way to include only certain methods from a module instead of all the methods? Given the following: module ActsAsAnything def self.included(base) base.extend(ClassMethods) end module ClassMethods def ac…

---

## [Triggering rollback manually-what methods should i use?](https://www.ruby-forum.com/t/triggering-rollback-manually-what-methods-should-i-use/157173)

<div class="topic-metadata">

**Author:** [@greg](https://www.ruby-forum.com/u/greg)\
**Replies:** 1\
**Last updated:** [January 8, 2009, 7:18am UTC](https://www.ruby-forum.com/t/triggering-rollback-manually-what-methods-should-i-use/157173 "2009-01-08T07:18:13Z")

</div>

hi Q1. If I want to manually trigger a DB transaction roleback progrmatically what approach/methods should I use? Q2. Also if in the transactions I use multiple models, should I start the transaction by (a) choosing…

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

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