Class: TableStructure::Iterator::HeaderOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/table_structure/iterator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  @enabled = !!options
  if options.is_a?(Hash)
    @context = options[:context]
    @step = options[:step]
  end

  validate
end

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



6
7
8
# File 'lib/table_structure/iterator.rb', line 6

def context
  @context
end

#enabledObject (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

#stepObject (readonly)

Returns the value of attribute step.



6
7
8
# File 'lib/table_structure/iterator.rb', line 6

def step
  @step
end