Class: Debci::Log::Section

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Section

Returns a new instance of Section.



12
13
14
15
16
17
# File 'lib/debci/log.rb', line 12

def initialize(name)
  @name = name
  @subsections = []
  @output = []
  @result = nil
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/debci/log.rb', line 9

def name
  @name
end

#outputObject (readonly)

Returns the value of attribute output.



9
10
11
# File 'lib/debci/log.rb', line 9

def output
  @output
end

#resultObject

Returns the value of attribute result.



10
11
12
# File 'lib/debci/log.rb', line 10

def result
  @result
end

#subsectionsObject (readonly)

Returns the value of attribute subsections.



9
10
11
# File 'lib/debci/log.rb', line 9

def subsections
  @subsections
end

Instance Method Details

#inspectObject



23
24
25
# File 'lib/debci/log.rb', line 23

def inspect
  "<Section name=#{name.inspect} subsections=#{subsections.inspect} result=#{result.inspect}>"
end

#test?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/debci/log.rb', line 19

def test?
  @result != nil
end