Module: Debug

Defined in:
lib/moon/packages/debug/base.rb,
lib/moon/packages/debug/eventable.rb,
lib/moon/packages/debug/data_model.rb,
lib/moon/packages/debug/render_container.rb

Defined Under Namespace

Modules: DataModel, Eventable, RenderContainer

Class Method Summary collapse

Class Method Details

.format_depth(str, depth) ⇒ Object


2
3
4
# File 'lib/moon/packages/debug/base.rb', line 2

def self.format_depth(str, depth)
  ('  ' * depth) << "#{str}"
end