Method: CSquare::Generator::Enum::OpNamer#num
- Defined in:
- lib/csquare/generator/enum/op_namer.rb
#num(op_symbol) ⇒ Object
Use the character values if operations are single-character
29 30 31 32 |
# File 'lib/csquare/generator/enum/op_namer.rb', line 29 def num op_symbol op_string = op_symbol.to_s op_string.size == 1 ? op_string.ord : :auto end |