title: Ruby- Beginner ran into unknown syntax
body: <p>Trying to learn Ruby I ran into this kind of syntax.... Can anyone explain me what it means?</p>
  
  <pre><code>a = nil if b.nonzero?
  </code></pre>
  
  <blockquote>
    <p>nonzero? : Returns self if num is not zero, nil otherwise.</p>
  </blockquote>
  
  <p>And thus does not return a boolean</p>