Class: Shoulda::Matchers::Configuration
- Inherits:
-
Object
- Object
- Shoulda::Matchers::Configuration
- Defined in:
- lib/shoulda/matchers/configuration.rb
Instance Attribute Summary collapse
-
#integrations ⇒ Object
readonly
Returns the value of attribute integrations.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #integrate(&block) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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
#integrations ⇒ Object (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 |