Class Class
In: lib/qbxml/support.rb
lib/quickbooks/ruby_magic.rb
Parent: Object

Methods

Public Instance methods

Returns the class name without the module names that precede it. I‘m sure there‘s a builtin way to do this, but I couldn‘t find it and this works just as reliably! Examples:

  • Qbxml::Request.class_leaf_name # => ‘Request‘
  • Quickbooks::Customer.class_leaf_name # => ‘Customer‘

[Validate]