title: How can I use `class` as a keyword argument?
body: <p>I want to write Rails helpers with a <code>class</code> keyword argument, like so:</p>
  
  <pre><code>special_link_tag body, url, class: 'special'
  </code></pre>
  
  <p>I can't refer to the <code>class</code> keyword because <code>class</code> is a reserved word:</p>
  
  <pre><code>def special_link_tag body, url, class: 'special'
    class ||= 'whatever' # error! 'class' is reserved
    :etc
  end
  </code></pre>
  
  <p>I see two options:</p>
  
  <pre><code>def special_link_tag(body, url, klass: 'special')
    klass ||= 'whatever'
    :etc
  end
  
  def special_link_tag(body, url, **options)
    klass = options[:class]
    klass ||= 'whatever'
    :etc
  end
  </code></pre>
  
  <p>I like neither of them. The first is inconsistent with Rails helpers. The second is better, but not ideal because now I need to explicitly check for keyword arguments I don't support or risk failing silently. Am I missing anything, or is the second method the way to go here?</p>