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

Methods

Public Instance methods

This allows one to effectively ‘proxy’ specific methods to be called on the return value of one of its methods. For example, obj.length could be delegated to do the same thing as obj.full_text.length

This allows one to effectively ‘proxy’ specific methods to be called on the return value of one of its methods. For example, obj.length could be delegated to do the same thing as obj.full_text.length

This way anything, even nil, can hold on to an error message to be picked up later.

Normally one would say, "if [:a, :b, :c].include?(:a)" — which is backward thinking, instead you should use this magic: ":a.is_one_of?(:a, :b, :c)", or :a.is_one_of?([:a, :b, :c]).

Normally one would say, "if [:a, :b, :c].include?(:a)" — which is backward thinking, instead you should use this magic: ":a.is_one_of?(:a, :b, :c)", or :a.is_one_of?([:a, :b, :c]).

Wraps any non-Array into an array

[Validate]