title: How to run Ruby file on Sublime Text
body: <p>I have a file named <code>add_and_power.rb</code> as below, and want to run it on Sublime Text.</p>
  
  <pre><code>def add_and_power a,b
    (a+b)**(a+b)
  end
  
  puts "First number please? "
  input1 = gets
  
  puts "Second number please? "
  input2 = gets
  
  puts "The result is: ", add_and_power(input1.to_i, input2.to_i)
  </code></pre>
  
  <p>I run <code>cmd+b</code>, but it just displays, </p>
  
  <pre><code>First number please? 
  Second number please? 
  The result is: 
  1
  [Finished in 0.9s]
  </code></pre>
  
  <p>I want to input <code>2</code> and <code>3</code> to get the answer. How can I make Sublime Text 2 ask for inputs and give back an answer?</p>