Class: Shoulda::Matchers::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/shoulda/matchers/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



22
23
24
# File 'lib/shoulda/matchers/configuration.rb', line 22

def initialize
  @integrations = nil
end

Instance Attribute Details

#integrationsObject (readonly)

Returns the value of attribute integrations.



20
21
22
# File 'lib/shoulda/matchers/configuration.rb', line 20

def integrations
  @integrations
end

Instance Method Details

#integrate(&block) ⇒ Object



26
27
28
# File 'lib/shoulda/matchers/configuration.rb', line 26

def integrate(&block)
  @integrations = Integrations::Configuration.apply(&block)
end