Class: OrigenTesters::Test::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/origen_testers/test/block.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/origen_testers/test/block.rb', line 4

def id
  @id
end

#selectedObject

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

#ownerObject



16
17
18
# File 'lib/origen_testers/test/block.rb', line 16

def owner
  @owner
end

#selectObject



12
13
14
# File 'lib/origen_testers/test/block.rb', line 12

def select
  @selected = true
end