O = Object.new; def o.to_hash() {1=>2} end; p Hash[o]

e$B0J2<$N7k2L$,e(B {} e$B$K$J$k$N$OJQ$8$c$J$$$G$7$g$&$+!#e(B

% ./ruby -ve ‘o = Object.new; def o.to_hash() {1=>2} end; p Hash[o]’
ruby 1.9.0 (2008-05-01 revision 16248) [i686-linux]
{}

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs