Method: Racc::Grammar::DefinitionEnv#_intern
- Defined in:
- lib/racc/grammar.rb
#_intern(x) ⇒ Object
323 324 325 326 327 328 329 330 331 332 |
# File 'lib/racc/grammar.rb', line 323 def _intern(x) case x when Symbol, String @grammar.intern(x) when Racc::Sym x else raise TypeError, "wrong type #{x.class} (expected Symbol/String/Racc::Sym)" end end |