title: How does Rails deal with method-name-unfriendly enum values?
body: <p>I have a (Rails) class that has the following enum value:</p>
  
  <pre><code>class DeploymentRequest
    enum frequency: ['One-off', 'Monthly', 'Quarterly', 'Annual']
    #...
  end
  </code></pre>
  
  <p>As per the <a href="https://api.rubyonrails.org/v5.2.3/classes/ActiveRecord/Enum.html" rel="nofollow noreferrer">docs</a> (although slightly to my surprise, case-sensitively), a DeploymentRequest has such instance methods as <code>#Monthly?</code>, <code>#Monthly!</code>, <code>#Quarterly?</code> and so on (and the class method <code>.Monthly</code>). But the 'One-off' value is throwing it and/or me. I've tried</p>
  
  <pre><code>dr.One_off?
  dr.Oneoff?
  dr.oneoff? # (one lives in hope)
  </code></pre>
  
  <p>But none work (and Pry/IRB aren't suggesting any helpful alternatives). What's happening here? Has Rails just not defined any such set of methods, or has it named them something I haven't found?</p>