
Ruby's equivalent of PHP explode - Ruby - Ruby-Forum
Sep 26, 2006 · What is ruby’s equivalent of PHPs explode? A routine which can breakdown a string and return the results in an array or a routine that can parse an .ini file and return the …
How to print Ruby's version from within the program
Sep 20, 2007 · Is there a way to print the Ruby version from within a Ruby program? I know i can use ruby -v at the command line, but what if it is inside of the code and i want to print it out. …
How to - Get method's name? - Ruby - Ruby-Forum
Aug 17, 2006 · Ruby’s exception handling will provide you with the method name already. You could also do something like this: class Object def method_name () # Use Kernel.caller and …
Ruby's simple_format method is not working for spaces
May 29, 2008 · Ruby’s simple_format method is not working for spaces. so how to add and what to add in simple format method code so it also work for spaces?
Ruby stupidities - Ruby - Ruby-Forum
Aug 31, 2007 · The title is intentionally (but semiseriously) contentious, but I’m not trying to say that Ruby is a bad language–I’m using it, right 🙂 ? However, any language has its unfortunate …
RUBYOPT -S RuntimeError - Ruby - Ruby-Forum
Jul 4, 2013 · I’m confused. On Windows7, Ruby 1.9.3 I do : ruby -S script.rb and it works correctly, and searches the PATH variable However, if I do : set RUBYOPT=-S ruby script.rb =>ruby: …
Any solutions to Ruby's inconsistencies? - Ruby - Ruby-Forum
Mar 4, 2009 · Ruby has definite positives over Java and even other scripting languages, but many negatives too. One negative is the inconsistency of how rules seem to be applied in the …
Using JRuby in eclipse - JRuby - Ruby-Forum
Dec 23, 2014 · I’m a Java programmer trying for the first time to use JRuby with eclipse. (I’m using Aptana plugin.) I downloaded the .exe file of the latest JRuby, and Eclipse Java DLTK - …
How to patch ruby's gem before an install? - Ruby - Ruby-Forum
Sep 7, 2012 · Hi, got stuck and cann’t find appropriate guide how can I patch gem package before it gets installed. For example I’m trying to fix gem for Gosu library: download the gem with …
Include Case-Insensitive - Rails - Ruby-Forum
Mar 25, 2007 · Sort of. You can’t expect to change ruby’s constant system to be insensitive, but if you’re OK with passing in strings, this might work: class Module def include_insensitive (*args) …