module DR::PPHelper
Include this to get less output from pp
Public Instance Methods
export()
click to toggle source
since we hide the pp value of self, allow to inspect it
# File lib/dr/base/utils.rb, line 75 def export r={} instance_variables.sort.each do |var| r[var]=instance_variable_get(var) end r end
pretty_print(pp)
click to toggle source
less verbose for pretty_print
# File lib/dr/base/utils.rb, line 69 def pretty_print(pp) info = respond_to?(:to_pp) ? to_pp : to_s pp.object_address_group(self) { pp.text " "+info } end