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



112
113
114
115
# File 'lib/consoler/options.rb', line 112

def initialize
  @is_tracking = nil
  @index = 0
end

Instance Attribute Details

#indexInteger

Optional group

Returns:

  • (Integer)

    the current value of index



107
108
109
# File 'lib/consoler/options.rb', line 107

def index
  @index
end

#is_trackingBoolean

Is inside optional options

Returns:

  • (Boolean)

    the current value of is_tracking



107
108
109
# File 'lib/consoler/options.rb', line 107

def is_tracking
  @is_tracking
end