module RSpec::Oj::Configuration
Constants
- DEFAULT_EXCLUDED_KEYS
Attributes
directory[RW]
Public Instance Methods
configure(&block)
click to toggle source
# File lib/rspec/oj/configuration.rb, line 12 def configure(&block) instance_eval(&block) end
exclude_keys(*keys)
click to toggle source
# File lib/rspec/oj/configuration.rb, line 24 def exclude_keys(*keys) self.excluded_keys = keys end
excluded_keys()
click to toggle source
# File lib/rspec/oj/configuration.rb, line 16 def excluded_keys @excluded_keys ||= DEFAULT_EXCLUDED_KEYS end
excluded_keys=(keys)
click to toggle source
# File lib/rspec/oj/configuration.rb, line 20 def excluded_keys=(keys) @excluded_keys = keys.map(&:to_s).uniq end
reset()
click to toggle source
# File lib/rspec/oj/configuration.rb, line 28 def reset instance_variables.each { |ivar| remove_instance_variable(ivar) } end