Module: MultiJson::Options Private
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Mixin providing configurable load/dump options
Supports static hashes or dynamic callables (procs/lambdas). Extended by both MultiJson (global options) and Adapter classes.
Instance Method Summary collapse
-
#default_dump_options ⇒ Hash
private
Get default dump options.
-
#default_load_options ⇒ Hash
private
Get default load options.
-
#dump_options ⇒ Hash
private
Get options for dump operations.
-
#dump_options=(options) ⇒ Hash, Proc
private
Set options for dump operations.
-
#load_options ⇒ Hash
private
Get options for load operations.
-
#load_options=(options) ⇒ Hash, Proc
private
Set options for load operations.
Instance Method Details
#default_dump_options ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Get default dump options
60 61 62 |
# File 'lib/multi_json/options.rb', line 60 def @default_dump_options ||= EMPTY_OPTIONS end |
#default_load_options ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Get default load options
52 53 54 |
# File 'lib/multi_json/options.rb', line 52 def @default_load_options ||= EMPTY_OPTIONS end |
#dump_options ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Get options for dump operations
44 45 46 |
# File 'lib/multi_json/options.rb', line 44 def (...) (@dump_options, ...) || end |
#dump_options=(options) ⇒ Hash, Proc
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Set options for dump operations
27 28 29 30 |
# File 'lib/multi_json/options.rb', line 27 def () OptionsCache.reset @dump_options = end |
#load_options ⇒ Hash
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Get options for load operations
36 37 38 |
# File 'lib/multi_json/options.rb', line 36 def (...) (@load_options, ...) || end |
#load_options=(options) ⇒ Hash, Proc
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Set options for load operations
17 18 19 20 |
# File 'lib/multi_json/options.rb', line 17 def () OptionsCache.reset @load_options = end |