class Origen::Registers::RegCollection
This is a regular Ruby hash that is used to store collections of Reg
objects, it has additional methods added to allow interaction with the contained registers. All Ruby hash methods are also available - www.ruby-doc.org/core/classes/Hash.html
Attributes
Returns the object that owns the registers
Public Class Methods
Source
# File lib/origen/registers/reg_collection.rb, line 10 def initialize(owner, _options = {}) @owner = owner end
Public Instance Methods
Source
# File lib/origen/registers/reg_collection.rb, line 14 def inspect map { |k, _v| k }.inspect end
Source
# File lib/origen/registers/reg_collection.rb, line 19 def show puts map { |_k, v| v }.inspect end
Display all regs visually in a console session