Class: Trailblazer::Developer::Trace::Level

Inherits:
Array
  • Object
show all
Defined in:
lib/trailblazer/developer/trace.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.input_output_nested_for_level(level) ⇒ Object

Parameters:



120
121
122
123
124
125
126
127
# File 'lib/trailblazer/developer/trace.rb', line 120

def self.input_output_nested_for_level(level)
  input  = level[0]
  output = level[-1]

  output, nested = output.is_a?(Entity::Output) ? [output, level-[input, output]] : [nil, level[1..-1]]

  return input, output, nested
end

Instance Method Details

#inspectObject



115
116
117
# File 'lib/trailblazer/developer/trace.rb', line 115

def inspect
  %{<Level>#{super}}
end