Class: Origen::Tester::J750::Generator::Patgroup::Pattern
- Inherits:
-
Object
- Object
- Origen::Tester::J750::Generator::Patgroup::Pattern
- Defined in:
- lib/origen/tester/j750/generator/patgroup.rb
Constant Summary
- ATTRS =
%w(group_name pattern_file comment)
- ALIASES =
{ pattern: :pattern_file }
- DEFAULTS =
{ }
Instance Method Summary (collapse)
-
- (Pattern) initialize(patgroup, attrs = {})
constructor
A new instance of Pattern.
- - (Object) to_s
Constructor Details
- (Pattern) initialize(patgroup, attrs = {})
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
- (Object) to_s
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 |