README.textile in new_class-0.1.1 vs README.textile in new_class-0.1.2
- old
+ new
@@ -1,8 +1,8 @@
h1. NewClass
-Define variable dependent classes without using class_eval
+Define variable dependent classes without evalling
h2. Introduction
I think we as Ruby programmers are blessed with the power of meta programming as we can program classes and instances dynamically within the Ruby language. These are just a couple of methods we can use as tools:
@@ -17,10 +17,10 @@
Some of the methods (such as @eval@, @class_eval@ and @instance_eval@) are often seen as evil and also, they can be very dangerous.
h3. Dynamic CarrierWave uploader classes
-In my case, I had to define "CarrierWave":https://github.com/jnicklas/carrierwave uploader classes dynamically as they are dependent of certain variables. Choosing not to use @class_eval@ for this task, I have created the @NewClass@ gem to accomplish this.
+In my case, I had to define "CarrierWave":https://github.com/jnicklas/carrierwave uploader classes dynamically as they are dependent of certain variables. Choosing not to use @instance_eval@ for this task, I have created the @NewClass@ gem to accomplish this.
Instead of defining a CarrierWave uploader class with something like this:
<pre>
config = {
\ No newline at end of file