I installed the act_as_versioned plugin from github.com in my rails application, and there was a block of code that I do not quite understand, I was hoping someone could clear this
class_eval <<-CLASS_METHODS
def a_bunch_of_stuff
....
end
CLASS_METHODS
I understand that methods inside a block (or something else) are defined as instance methods within a class, but I cannot find CLASS_METHODS defined as a constant anywhere in the plugin, and I'm also not sure what <- after class_eval means. the plugin is here , and this code starts at line 199 lib / actions_as_versioned.rb. If someone gave me a low price here, I would be very obliged.
THX
-C
source
share