Class: C99::Block
- Inherits:
-
Object
- Object
- C99::Block
- Defined in:
- lib/c99/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.
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
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/c99/block.rb', line 3 def id @id end |
#selected ⇒ Object
Returns the value of attribute selected.
3 4 5 |
# File 'lib/c99/block.rb', line 3 def selected @selected end |
Instance Method Details
#owner ⇒ Object
15 16 17 |
# File 'lib/c99/block.rb', line 15 def owner @owner end |
#select ⇒ Object
11 12 13 |
# File 'lib/c99/block.rb', line 11 def select @selected = true end |