Class: JsonCompleter::ArrayContext
- Inherits:
-
Struct
- Object
- Struct
- JsonCompleter::ArrayContext
- Defined in:
- lib/json_completer.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#provisional_index ⇒ Object
Returns the value of attribute provisional_index.
Instance Method Summary collapse
-
#initialize(container:, mode: :value_or_end, provisional_index: nil) ⇒ ArrayContext
constructor
A new instance of ArrayContext.
Constructor Details
#initialize(container:, mode: :value_or_end, provisional_index: nil) ⇒ ArrayContext
Returns a new instance of ArrayContext.
45 46 47 |
# File 'lib/json_completer.rb', line 45 def initialize(container:, mode: :value_or_end, provisional_index: nil) super end |
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container
44 45 46 |
# File 'lib/json_completer.rb', line 44 def container @container end |
#mode ⇒ Object
Returns the value of attribute mode
44 45 46 |
# File 'lib/json_completer.rb', line 44 def mode @mode end |
#provisional_index ⇒ Object
Returns the value of attribute provisional_index
44 45 46 |
# File 'lib/json_completer.rb', line 44 def provisional_index @provisional_index end |