title: How do write two methods with different number of arguments in Ruby
body: <p>I am trying to write this inside my class:</p>
  
  <pre><code>class &lt;&lt; self
      def steps
        @steps.call
      end
  
      def transitions
        @transitions.call
      end
  
      def steps(&amp;steps)
        @steps = steps
      end
  
      def transitions(&amp;transitions)
        @transitions = transitions
      end
    end
  </code></pre>
  
  <p>That won't work since in Ruby, I can't do this kind of method overloading. Is there a way around this?</p>