In: |
pp.rb
|
# File pp.rb, line 286 def pretty_print(q) if /\(Kernel\)#/ !~ method(:inspect).inspect q.text self.inspect elsif /\(Kernel\)#/ !~ method(:to_s).inspect && instance_variables.empty? q.text self.to_s else q.pp_object(self) end end
# File pp.rb, line 296 def pretty_print_cycle(q) q.object_address_group(self) { q.breakable q.text '...' } end
# File pp.rb, line 307 def pretty_print_inspect if /\(PP::ObjectMixin\)#/ =~ method(:pretty_print).inspect raise "pretty_print is not overridden." end PP.singleline_pp(self, '') end