class RSpec::Contracts::InterfaceGroup
Public Class Methods
new()
click to toggle source
# File lib/rspec/contracts/interface_group.rb, line 8 def initialize @collection = {} end
Public Instance Methods
each(&block)
click to toggle source
# File lib/rspec/contracts/interface_group.rb, line 16 def each(&block) @collection.values.each(&block) end
find_or_create(name)
click to toggle source
# File lib/rspec/contracts/interface_group.rb, line 12 def find_or_create(name) @collection[name] ||= Interface.new(name) end