Skip to content

Instantly share code, notes, and snippets.

/gist:102836

Created Apr 28, 2009
Embed
What would you like to do?
module_eval(<<-EVAL, __FILE__, __LINE__)
cattr_accessor :the_class_name
@@the_class_name = #{options[:name] || "nil"} || self.to_s + "Duck"
Object::const_set(@@the_class_name.intern, Class::new do
...
end)
EVAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.