Class: OrigenTesters::Test::Block
- Inherits:
-
Object
- Object
- OrigenTesters::Test::Block
- Defined in:
- lib/origen_testers/test/block.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#selected ⇒ Object
Returns the value of attribute selected.
Instance Method Summary collapse
-
#initialize(id, owner) ⇒ Block
constructor
A new instance of Block.
- #owner ⇒ Object
- #select ⇒ Object
Constructor Details
#initialize(id, owner) ⇒ Block
Returns a new instance of Block.
6 7 8 9 10 |
# File 'lib/origen_testers/test/block.rb', line 6 def initialize(id, owner) @id = id @selected = false @owner = owner end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/origen_testers/test/block.rb', line 4 def id @id end |
#selected ⇒ Object
Returns the value of attribute selected.
4 5 6 |
# File 'lib/origen_testers/test/block.rb', line 4 def selected @selected end |
Instance Method Details
#owner ⇒ Object
16 17 18 |
# File 'lib/origen_testers/test/block.rb', line 16 def owner @owner end |
#select ⇒ Object
12 13 14 |
# File 'lib/origen_testers/test/block.rb', line 12 def select @selected = true end |