Class: FlameChannelParser::Inspector

Inherits:
Object
  • Object
show all
Defined in:
lib/inspector.rb

Overview

Prints out a viewable tree of channel metadata. Useful when you need to inspect comparable setups for small differentces in channel ordering and animation.

Defined Under Namespace

Classes: OH

Instance Method Summary collapse

Constructor Details

#initialize(channels_arr) ⇒ Inspector

Returns a new instance of Inspector.



5
6
7
8
# File 'lib/inspector.rb', line 5

def initialize(channels_arr)
  @branches = OH.new
  channels_arr.each {|c| cluster(c) }
end

Instance Method Details

#pretty_print(output = $stdout) ⇒ Object



10
11
12
13
# File 'lib/inspector.rb', line 10

def pretty_print(output = $stdout)
  @out = output
  print_branch(@branches, initial_indent = 0)
end