title: How to check in Ruby if method's parameter is a symbol?
body: <pre><code>def my_method(parameter)
    if &lt;what should be here?&gt;
      puts "parameter is a string"
    elsif &lt;and here?&gt;
      puts "parameter is a symbol"
    end
  end
  </code></pre>