Class: Origen::Tester::J750::Generator::Patgroup::Pattern
- Defined in:
- lib/origen/tester/j750/generator/patgroup.rb
Constant Summary collapse
- ATTRS =
%w(group_name pattern_file comment)
- ALIASES =
{ pattern: :pattern_file }
- DEFAULTS =
{ }
Instance Method Summary collapse
-
#initialize(patgroup, attrs = {}) ⇒ Pattern
constructor
A new instance of Pattern.
- #to_s ⇒ Object
Constructor Details
#initialize(patgroup, attrs = {}) ⇒ Pattern
Returns a new instance of Pattern.
32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/origen/tester/j750/generator/patgroup.rb', line 32 def initialize(patgroup, attrs = {}) # Set the defaults DEFAULTS.each do |k, v| send("#{k}=", v) end # Then the values that have been supplied self.group_name = patgroup attrs.each do |k, v| send("#{k}=", v) end end |
Instance Method Details
#to_s ⇒ Object
44 45 46 47 48 49 50 |
# File 'lib/origen/tester/j750/generator/patgroup.rb', line 44 def to_s l = "\t" ATTRS.each do |attr| l += "#{send(attr)}\t" end "#{l}" end |