Module: MultiJson::Options

Included in:
MultiJson, Adapter
Defined in:
lib/multi_json/options.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) default_dump_options



26
27
28
# File 'lib/multi_json/options.rb', line 26

def default_dump_options
  @default_dump_options ||= {}
end

- (Object) default_load_options



22
23
24
# File 'lib/multi_json/options.rb', line 22

def default_load_options
  @default_load_options ||= {}
end

- (Object) dump_options(*args)



18
19
20
# File 'lib/multi_json/options.rb', line 18

def dump_options(*args)
  get_options :dump_options, *args
end

- (Object) dump_options=(options)



9
10
11
12
# File 'lib/multi_json/options.rb', line 9

def dump_options=(options)
  MultiJson.reset_cached_options!
  @dump_options = options
end

- (Object) load_options(*args)



14
15
16
# File 'lib/multi_json/options.rb', line 14

def load_options(*args)
  get_options :load_options, *args
end

- (Object) load_options=(options)



4
5
6
7
# File 'lib/multi_json/options.rb', line 4

def load_options=(options)
  MultiJson.reset_cached_options!
  @load_options = options
end