class MyClass def mymethod MYCONSTANT = \"blah\" end end
gives me the error:
SyntaxError: dynamic constant assignmen
Constants in ruby cannot be defined inside methods. See the notes at the bottom of this page, for example