Class: Debci::Log::Section
- Inherits:
-
Object
- Object
- Debci::Log::Section
- Defined in:
- lib/debci/log.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#result ⇒ Object
Returns the value of attribute result.
-
#subsections ⇒ Object
readonly
Returns the value of attribute subsections.
Instance Method Summary collapse
-
#initialize(name) ⇒ Section
constructor
A new instance of Section.
- #inspect ⇒ Object
- #test? ⇒ Boolean
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/debci/log.rb', line 9 def name @name end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
9 10 11 |
# File 'lib/debci/log.rb', line 9 def output @output end |
#result ⇒ Object
Returns the value of attribute result.
10 11 12 |
# File 'lib/debci/log.rb', line 10 def result @result end |
#subsections ⇒ Object (readonly)
Returns the value of attribute subsections.
9 10 11 |
# File 'lib/debci/log.rb', line 9 def subsections @subsections end |
Instance Method Details
#inspect ⇒ Object
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
19 20 21 |
# File 'lib/debci/log.rb', line 19 def test? @result != nil end |