def hash_from_string(string, value)
hash, split = {}, string.split(".")
(split.size-1).downto(0) do |i|
...
#!/usr/bin/env ruby -w require 'rexml/document' ...
Ruby Let me merge my Tomboy notes!
Learning Ruby, and learning...
#!/usr/bin/env ruby
files = ARGV.collect { |fname| File.new(fname, 'w') }
...
Ruby Randomly split input lines.
by Scott Robinson,
November 15, 2007 08:56,
2 refactorings, tagged with functional, short, oneliner, one-liner
My first Ruby script. I'm c...
# String#to_proc # # See http://weblog.raganwald.com/2007/10/stringtoproc.html ( Subscribe in a reader) ...
Ruby String#to_proc (by Reginald...
Reginald Braithwaite has a ...
the string can contain 1-n ...