Class: JsonCompleter::ObjectContext
- Inherits:
-
Struct
- Object
- Struct
- JsonCompleter::ObjectContext
- Defined in:
- lib/json_completer.rb
Instance Attribute Summary collapse
-
#container ⇒ Object
Returns the value of attribute container.
-
#current_key ⇒ Object
Returns the value of attribute current_key.
-
#mode ⇒ Object
Returns the value of attribute mode.
Instance Method Summary collapse
-
#initialize(container:, mode: :key_or_end, current_key: nil) ⇒ ObjectContext
constructor
A new instance of ObjectContext.
Constructor Details
#initialize(container:, mode: :key_or_end, current_key: nil) ⇒ ObjectContext
Returns a new instance of ObjectContext.
39 40 41 |
# File 'lib/json_completer.rb', line 39 def initialize(container:, mode: :key_or_end, current_key: nil) super end |
Instance Attribute Details
#container ⇒ Object
Returns the value of attribute container
38 39 40 |
# File 'lib/json_completer.rb', line 38 def container @container end |
#current_key ⇒ Object
Returns the value of attribute current_key
38 39 40 |
# File 'lib/json_completer.rb', line 38 def current_key @current_key end |
#mode ⇒ Object
Returns the value of attribute mode
38 39 40 |
# File 'lib/json_completer.rb', line 38 def mode @mode end |