class Origen::Ports::PortCollection

Public Instance Methods

add(name, port) click to toggle source
# File lib/origen/ports/port_collection.rb, line 4
def add(name, port)
  self[name] = port
  by_type[port.type] ||= []
  by_type[port.type] << port
end
by_type() click to toggle source
# File lib/origen/ports/port_collection.rb, line 10
def by_type
  @by_type ||= {}.with_indifferent_access
end
inspect() click to toggle source
# File lib/origen/ports/port_collection.rb, line 14
def inspect
  map { |k, _v| k }.inspect
end