Class: RSpec::Contracts::InterfaceGroup
- Inherits:
-
Object
- Object
- RSpec::Contracts::InterfaceGroup
- Includes:
- Enumerable
- Defined in:
- lib/rspec/contracts/interface_group.rb
Instance Method Summary collapse
- #each(&block) ⇒ Object
- #find_or_create(name) ⇒ Object
-
#initialize ⇒ InterfaceGroup
constructor
A new instance of InterfaceGroup.
Constructor Details
#initialize ⇒ InterfaceGroup
Returns a new instance of InterfaceGroup.
8 9 10 |
# File 'lib/rspec/contracts/interface_group.rb', line 8 def initialize @collection = {} end |
Instance Method Details
#each(&block) ⇒ Object
16 17 18 |
# File 'lib/rspec/contracts/interface_group.rb', line 16 def each(&block) @collection.values.each(&block) end |