class MyClass
def mymethod
MYCONSTANT = \"blah\"
end
end
gives me the error:
SyntaxError: dynamic constant assignmen
You can't name a variable with capital letters or Ruby will asume its a constant and will want it to keep it's value constant, in which case changing it's value would be an error an "dynamic constant assignment error". With lower case should be fine
class MyClass
def mymethod
myconstant = "blah"
end
end