From: Johann Hibschman Date: 2001-02-27T15:40:03+09:00 Subject: [ruby-talk:11667] Re: automatic method creation Dave Thomas writes: > You just did :) > def double_it(klass, single, double) > klass.class_eval %{ > def #{double}(*args) > #{single}(*args) > #{single}(*args) > end > } > end Very nice. Could you perhaps explain the %{ } form? I don't know that one. Is it another string literal, like %q{ ... }? Thanks, --Johann -- Johann Hibschman johann@physics.berkeley.edu