Dual boot system -- share installed gems134 (1/17/2009 3:02:07 PM) comp.lang.ruby I have a dual boot computer -- Linux and XP. There is a shared data partition that the two access. Would it be possible to have the ruby gem repository on that shared drive such that my Ruby environment is th... dkmd_nielsen
attr_reader, default attribute value, and rdoc of attribute636 (11/26/2008 11:44:18 AM) comp.lang.ruby What I want to do is create an attribute, allow it to have a default value, and have the attribute documented as such (and not as a method) with rdoc. So, would the proper syntax for accomplishing this element... dkmd_nielsen
Need tutoring on using a path environment variable1025 (11/12/2008 8:50:43 PM) comp.lang.ruby I don't know what to do. I have an environment variable, PW_PATH, that contains the folder names where applications can be executed from. I want to start a particular application that is in one of those folde... dkmd_nielsen
What are you suggestions for raising exceptions123 (11/7/2008 12:07:38 PM) comp.lang.ruby My application has a common routine to format error messages: def FLIO.display_error(clss,err) ln = '-'*70 lbl = "#{clss}_#{sprintf('%04i',err[:num])}" ln[(ln.length - lbl.length)/2,lbl.le... dkmd_nielsen
ActiveRecord :conditions with .attributes116 (10/31/2008 5:54:45 PM) comp.lang.ruby Thanks for any help and suggestions. I'm having troubles with the following not working. It generates a "miss value for :OCRACR in OCRACR = :OCRACR..." error. slct = "OCRACR = :OCRACR and MSG = :MSG and KEYC... dkmd_nielsen
Any news on ArachnoRuby / Scriptolutions / Lothar Scholtz227 (10/15/2008 3:23:21 PM) comp.lang.ruby Lothar appears to have disappeared. His last blog entry was back in March of this year. I believe he was in the process of refactoring ArachnoRuby. I'm just curious what's new with the product. I've relied ... dkmd_nielsen
Lame question about instance variable and attribute624 (10/15/2008 2:41:10 PM) comp.lang.ruby Assuming an attribute :field is defined, is there a processing difference between using @field and self.field [within the defining class?] Does the ruby interpretter take a different path in yielding the value... dkmd_nielsen
Calling DLL's from Ruby359 (9/3/2008 8:16:26 PM) comp.lang.ruby I've written quite a bit of logic into DLL's using C#. I would like to leverage that logic in my Ruby scripts, but I am unsure where to start or how to start. I've installed RubyClr, but no documentation inst... dkmd_nielsen
Revert back to rubygems 0.9 from 1.0.1532 (4/8/2008 4:35:05 PM) comp.lang.ruby My debugger is having a problem with rubygems v1.0.1. I would like to revert back to rubygems 0.9, if that is possible. What steps are necessary to back out v1.0.1 and re-install 0.9.x? Thanks for your time,... dkmd_nielsen
Determine "owning" class?617 (3/9/2008 3:58:06 PM) comp.lang.ruby class A end class C def initialize x = [A.new,A.new] end def template x end end Is it possible for an instance of A to determine the instance of C that instantiated it? The applicati... dkmd_nielsen
ActiveRecord connect to SqlServer618 (1/24/2008 3:55:03 PM) comp.lang.ruby I know you guys have beaten this subject to death, but I'm just not getting a connection to SqlServer 2005. It is installed locally, with an instance name of DVN-P548. I use my windows user name and password ... donn1(49)
Write a copy of the current script717 (2/18/2008 2:47:00 PM) comp.lang.ruby I would like to write a copy of the current script being executed. I've attempted to use __FILE__ and $0, but neither is returning the full path name of script. I get the file name, but not the path in which i... donn1(49)
Ruby Debugging - step-thru?327 (3/10/2008 3:17:05 PM) comp.lang.ruby is there a way of being able to step thru your code like in VS.NET to see when it fails? i know you can set breakpoints in the console but just wondering if there's a more feature-rich way? -- Posted via http... indiehead(30)
Remove first and last items from array736 (4/8/2008 4:30:44 PM) comp.lang.ruby Hi, I need to remove the first and last items in an array (which may have 1, 2 or more items so the resulting array after removal may be empty). I came up with this: a = [1,2,3,4,5] 2.times { a.pop; a.reverse... seo(16)
Revert back to rubygems 0.9 from 1.0.1532 (4/8/2008 4:35:05 PM) comp.lang.ruby My debugger is having a problem with rubygems v1.0.1. I would like to revert back to rubygems 0.9, if that is possible. What steps are necessary to back out v1.0.1 and re-install 0.9.x? Thanks for your time,... donn1(49)
Lame question about instance variable and attribute624 (10/15/2008 2:41:10 PM) comp.lang.ruby Assuming an attribute :field is defined, is there a processing difference between using @field and self.field [within the defining class?] Does the ruby interpretter take a different path in yielding the value... donn1(49)
Netbeans 6.1 IDE - new install - ruby error? jruby?427 (10/31/2008 3:48:15 PM) comp.lang.ruby Hello - I am trying a new ruby IDE (Im very new to ruby, I was using Eclipse with a ruby addon). I downloaded the Netbeans with Ruby install package. Got it up and running, and when I try to execute/run a de... ruby-forum7870(12)
ActiveRecord :conditions with .attributes116 (10/31/2008 5:54:45 PM) comp.lang.ruby Thanks for any help and suggestions. I'm having troubles with the following not working. It generates a "miss value for :OCRACR in OCRACR = :OCRACR..." error. slct = "OCRACR = :OCRACR and MSG = :MSG and KEYC... donn1(49)
Need tutoring on using a path environment variable1025 (11/12/2008 8:50:43 PM) comp.lang.ruby I don't know what to do. I have an environment variable, PW_PATH, that contains the folder names where applications can be executed from. I want to start a particular application that is in one of those folde... donn1(49)
attr_reader, default attribute value, and rdoc of attribute636 (11/26/2008 11:44:18 AM) comp.lang.ruby What I want to do is create an attribute, allow it to have a default value, and have the attribute documented as such (and not as a method) with rdoc. So, would the proper syntax for accomplishing this element... donn1(49)