Method: RabbitMQ::Util.const_name
- Defined in:
- lib/rabbitmq/util.rb
.const_name(lowercase_name) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/rabbitmq/util.rb', line 9 def const_name(lowercase_name) lowercase_name.to_s.gsub(/((?:\A\w)|(?:_\w))/) { |x| x[-1].upcase } end |