For a project I am working on in ruby I am overriding the method_missing method so that I can set variables using a method call like this, similar to setting variables in an ActiveRecord object:
Object.variable_name= 'new value'
However, after implementing this I found out that many of the variable names have periods (.) in them. I have found this workaround:
Object.send('variable.name=', 'new value')
However, I am wondering is there a way to escape the period so that I can use
Object.variable.name= 'new value'