Class: C99::Block

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, owner) ⇒ Block

Returns a new instance of Block.



5
6
7
8
9
# File 'lib/c99/block.rb', line 5

def initialize(id, owner)
  @id = id
  @selected = false
  @owner = owner
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/c99/block.rb', line 3

def id
  @id
end

#selectedObject

Returns the value of attribute selected.



3
4
5
# File 'lib/c99/block.rb', line 3

def selected
  @selected
end

Instance Method Details

#ownerObject



15
16
17
# File 'lib/c99/block.rb', line 15

def owner
  @owner
end

#selectObject



11
12
13
# File 'lib/c99/block.rb', line 11

def select
  @selected = true
end