Module: Quickbooks::Support::Inflection
- Included in:
- API, Parser::XMLGeneration, QbxmlParser
- Defined in:
- lib/quickbooks/support/inflection.rb
Instance Method Summary collapse
Instance Method Details
#underscore(obj) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/quickbooks/support/inflection.rb', line 5 def underscore(obj) name = \ case obj when Class obj.simple_name when Nokogiri::XML::Element obj.name else obj.to_s end name.underscore end |