Class: Trailblazer::Developer::Trace::Present::TreeNodes::Node

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object

Allow access to any custom key from options, eg. color_map



45
46
47
# File 'lib/trailblazer/developer/trace/present.rb', line 45

def method_missing(name, *)
  options[name]
end

Instance Attribute Details

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



43
44
45
# File 'lib/trailblazer/developer/trace/present.rb', line 43

def input
  @input
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



43
44
45
# File 'lib/trailblazer/developer/trace/present.rb', line 43

def level
  @level
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



43
44
45
# File 'lib/trailblazer/developer/trace/present.rb', line 43

def options
  @options
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



43
44
45
# File 'lib/trailblazer/developer/trace/present.rb', line 43

def output
  @output
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



43
44
45
# File 'lib/trailblazer/developer/trace/present.rb', line 43

def value
  @value
end