Module: MultiJson::Options

Included in:
MultiJson, Adapter
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/options.rb

Instance Method Summary collapse

Instance Method Details

#default_dump_optionsObject



25
26
27
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/options.rb', line 25

def default_dump_options
  @default_dump_options ||= {}
end

#default_load_optionsObject



21
22
23
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/options.rb', line 21

def default_load_options
  @default_load_options ||= {}
end

#dump_options(*args) ⇒ Object



17
18
19
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/options.rb', line 17

def dump_options(*args)
  defined?(@dump_options) && get_options(@dump_options, *args) || default_dump_options
end

#dump_options=(options) ⇒ Object



8
9
10
11
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/options.rb', line 8

def dump_options=(options)
  OptionsCache.reset
  @dump_options = options
end

#load_options(*args) ⇒ Object



13
14
15
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/options.rb', line 13

def load_options(*args)
  defined?(@load_options) && get_options(@load_options, *args) || default_load_options
end

#load_options=(options) ⇒ Object



3
4
5
6
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/multi_json-1.15.0/lib/multi_json/options.rb', line 3

def load_options=(options)
  OptionsCache.reset
  @load_options = options
end