Archive for the ‘Ruby’ Category

JRuby on Windows 7 – multiple versions

December 23, 2011

# JRuby folders

# Java releases:
c\Program Files (x86)\Java\jdk1.6.0_29\bin
c\Program Files (x86)\Java\jdk1.7.0_02\bin

# Edit 3 Environment variables:

c:\Program Files (x86)\Java\jdk1.6.0_29\bin;

JAVA_HOME=”c:\\Program Files (x86)\\Java\\jdk1.6.0_29″

JRuby Snapshots



Mangled Ruby Learnings

October 21, 2010

Tattered cloth caught in the barbed wire of exploring the Ruby programming language

Ruby ponderables. yield and Enumerable

Freeze that string or be wary of change

Anything else is true.  Who are we?

Inspector p may be your friend.

Knights who say ri?

connecting with your inner . # ::

you respond_to? ‘my_affection’

What do we know of equality (==) on the Range?

How can … be less inclusive than ..?

1..5 === 3

self.respond_to? ‘madness’.intern # No method to my madness

<eol> terminates syntactically complete statement

‘.’ first non=white ruby 1.9 continuation

space between method name and ‘(‘

always run with -w. never run with scissors

all the classes with expression literals [Array, Hash, Range] # and others?

The Ruby interpreter evaluates expressions, producing values.

Formally called a “block”. What am I?

shebang. Sexist comment?

BEGIN END has special meaning

method arguments are passed “by value” rather than “by reference”, but the values passed are object references. RPL 3.8.1

new is a method of the Class class RPL 3.8.2

include Comparable. <=> used to define < <= == >= > RPL 3.8.6

Programming with Ruby

September 21, 2010

I’m spending time with Ruby, Sinatra, Datamapper

IDE for Ruby Development

Rails Wiki – Text Editors and IDEs

Chad Woolley – The Great Ruby IDE Smackdown of ’09

Aptana RadRails 2