Class: RequireProfiler::Reporter::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/require_profiler/reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNode

Returns a new instance of Node.



9
10
11
12
# File 'lib/require_profiler/reporter.rb', line 9

def initialize(...)
  super
  self.children ||= []
end

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



8
9
10
# File 'lib/require_profiler/reporter.rb', line 8

def children
  @children
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



8
9
10
# File 'lib/require_profiler/reporter.rb', line 8

def path
  @path
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



8
9
10
# File 'lib/require_profiler/reporter.rb', line 8

def time
  @time
end