Module: Debug::DataModel

Defined in:
lib/moon/packages/debug/data_model.rb

Overview

Debugging Module for Moon::DataModel(s)

Defined Under Namespace

Modules: PrettyFormat Classes: PrettyPrintStreamer

Class Method Summary collapse

Class Method Details

.pretty_print(obj, depth = 0) ⇒ Object


171
172
173
174
175
# File 'lib/moon/packages/debug/data_model.rb', line 171

def self.pretty_print(obj, depth = 0)
  streamer = PrettyPrintStreamer.new(STDOUT)
  streamer.write_object(obj, depth)
  streamer.write_endl
end