Class: TableStructure::Iterator::HeaderOptions
- Inherits:
-
Object
- Object
- TableStructure::Iterator::HeaderOptions
- Defined in:
- lib/table_structure/iterator.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#enabled ⇒ Object
(also: #enabled?)
readonly
Returns the value of attribute enabled.
-
#step ⇒ Object
readonly
Returns the value of attribute step.
Instance Method Summary collapse
-
#initialize(options) ⇒ HeaderOptions
constructor
A new instance of HeaderOptions.
Constructor Details
#initialize(options) ⇒ HeaderOptions
Returns a new instance of HeaderOptions.
9 10 11 12 13 14 15 16 17 |
# File 'lib/table_structure/iterator.rb', line 9 def initialize() @enabled = !! if .is_a?(Hash) @context = [:context] @step = [:step] end validate end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
6 7 8 |
# File 'lib/table_structure/iterator.rb', line 6 def context @context end |
#enabled ⇒ Object (readonly) Also known as: enabled?
Returns the value of attribute enabled.
6 7 8 |
# File 'lib/table_structure/iterator.rb', line 6 def enabled @enabled end |
#step ⇒ Object (readonly)
Returns the value of attribute step.
6 7 8 |
# File 'lib/table_structure/iterator.rb', line 6 def step @step end |