DEV Community 👩‍💻👨‍💻

Burdette Lamar
Burdette Lamar

Posted on

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:

Top comments (0)

Stop sifting through your feed.

Find the content you want to see.

Change your feed algorithm by adjusting your experience level and give weights to the tags you follow.