Class: Consoler::OptionalsTracker

Inherits:
Object
  • Object
show all
Defined in:
lib/consoler/options.rb

Overview

Optionals tracker

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptionalsTracker

Create an optionals tracker



135
136
137
138
# File 'lib/consoler/options.rb', line 135

def initialize
  @is_tracking = nil
  @index = 0
end

Instance Attribute Details

#indexInteger

Optional group

Returns:

  • (Integer)

    the current value of index



130
131
132
# File 'lib/consoler/options.rb', line 130

def index
  @index
end

#is_trackingBoolean

Is inside optional options

Returns:

  • (Boolean)

    the current value of is_tracking



130
131
132
# File 'lib/consoler/options.rb', line 130

def is_tracking
  @is_tracking
end