I would like to create a class that during initialization of an Object of this class would assign provided value to one of the variables, in such way it can't be changed. For example:
person = Person.new("Tom")
person.name #=> Tom
person.name = "Bob"
this should raise an error or:
person.name #=> Tom -> still