Željko Filipin's Blog on Software and Testing

Test like you do not need the money.

Archive for the ‘Ruby’ Category

How Do I Get REXML Version Number?

without comments

require "rexml/document" # => true
REXML::Version # => "3.1.7"

Written by Željko Filipin

October 18th, 2007 at 9:00 am

Posted in Ruby

Ruby on Rails Commercials

without comments

I do not use Rails a lot but commercials that Rails Envy made are great! :)

Here is the latest one.

Written by Željko Filipin

October 6th, 2007 at 9:00 am

Posted in Humour,Ruby

NoMethodError: undefined method `copy’ for File:Class

with 5 comments

I wanted to copy a file from Ruby. Documentation for File#copy
said that

File.copy(from, to)

should work. But, I got this error message:

NoMethodError: undefined method `copy' for File:Class

Google search led me to ruby-talk post that said I should do:

require “ftools”

I am just surprised that documentation did not make that clear.

Written by Željko Filipin

September 12th, 2007 at 9:00 am

Posted in Ruby