I have to name methods based on the index number of some external documentation:
def 51_bic
end
This is wrong, as shown by the color with the syntax highlighting. And also the code fails with trailing `_' in number (SyntaxError).
Using bic_51 works just fine. But why is that? What's the nature of the fact that I can't use integer + underscore + string? My understanding is that everything after a def is just a method name as a string.
define_method('51_bic') { ... }but it also has to be invoked viapublic_send('51_bic'). It might therefore be more convenient to add a non-numeric prefix, e.g.index_51_bic