Class: AbideDevUtils::XCCDF::Diff::NumberTitleContainerStandIn
- Inherits:
-
Object
- Object
- AbideDevUtils::XCCDF::Diff::NumberTitleContainerStandIn
- Defined in:
- lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb
Overview
Stand-in object for a NumberTitleContainer when the NumberTitleContainer would not exist. This is used when a change is an add or remove.
Instance Attribute Summary collapse
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(change_type) ⇒ NumberTitleContainerStandIn
constructor
A new instance of NumberTitleContainerStandIn.
Constructor Details
#initialize(change_type) ⇒ NumberTitleContainerStandIn
Returns a new instance of NumberTitleContainerStandIn.
261 262 263 264 265 266 |
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 261 def initialize(change_type) @change_type = change_type @child = nil @number = '' @title = '' end |
Instance Attribute Details
#child ⇒ Object (readonly)
Returns the value of attribute child.
259 260 261 |
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 259 def child @child end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
259 260 261 |
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 259 def number @number end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
259 260 261 |
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 259 def title @title end |