Module: RSpec::Mocks::Serialization

Defined in:
lib/rspec/mocks/serialization.rb

Defined Under Namespace

Modules: YAML

Class Method Summary collapse

Class Method Details

.fix_for(object) ⇒ Object



4
5
6
# File 'lib/rspec/mocks/serialization.rb', line 4

def self.fix_for(object)
  object.extend(YAML) if defined?(::YAML)
end