ruby - How do I fix this NameError? -


I want to use value v inside an example method on a particular object's meta :

  v = ParserMap [kind] [: verification] # We want to use this value later. S = ParserMap [kind] [: specs] const_set (name, lambda {p = parser.new (s) # this line is a new area ... class  

Unfortunately, the class keyword starts a new field, so I lose old scope and given a name to me. Okay?

change class with class

Will return, so that you can call it at class_eval . The block given to class_eval will then implement in the context of the metaCLAS (as it was before), but a new area Without starting.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -