class ClassName def value= (new_value) @value = new_value end end x = ClassName.new x.value = 120 x.is_big? => true