title: Is it possible to have class.property = x return something other than x?
body: <p>Let's say I have a Ruby class:</p>
  
  <pre><code>class MyClass
    def self.property
      return "someVal"
    end
  
    def self.property=(newVal)
      # do something to set "property"
      success = true
  
      return success # success is a boolean
    end
  end
  </code></pre>
  
  <p>If I try and do <code>MyClass.property=x</code>, the return value of the whole statement is always x. It is a convention in a lot of C-based/inspired languages to return a boolean "success" value - is it possible to do this for a setter using the "equals syntax" in Ruby?</p>
  
  <p>Furthermore - if this isn't possible, why not? Is there any conceivable downside to allowing an "equals setter" operation return a value?</p>