Gem debug_helper Goes All Modular

Per a user suggestion, I have enhanced Ruby gem debug_helper so that it can be used either as a class or as a module.

Per the suggestion, the new module method, putd, has the look and feel of method puts.

Now you can analyze an object using either of these methods (with appropriate require and include):

  • Class method: DebugHelper.show(object, message)
  • Module method: putd object, message

Links: