Class: BetaBrite::Files::Dots
- Inherits:
-
Object
- Object
- BetaBrite::Files::Dots
- Defined in:
- lib/betabrite/files/dots.rb
Constant Summary collapse
- COMMAND_CODE =
0x49.chr
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#label ⇒ Object
Returns the value of attribute label.
-
#picture ⇒ Object
Returns the value of attribute picture.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
-
#initialize(label, rows, columns, picture, &block) ⇒ Dots
constructor
A new instance of Dots.
- #to_s ⇒ Object (also: #to_str)
Constructor Details
#initialize(label, rows, columns, picture, &block) ⇒ Dots
Returns a new instance of Dots.
8 9 10 11 12 13 14 |
# File 'lib/betabrite/files/dots.rb', line 8 def initialize(label, rows, columns, picture, &block) @label = label @rows = rows @columns = columns @picture = picture instance_eval(&block) if block end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
6 7 8 |
# File 'lib/betabrite/files/dots.rb', line 6 def columns @columns end |
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'lib/betabrite/files/dots.rb', line 6 def label @label end |
#picture ⇒ Object
Returns the value of attribute picture.
6 7 8 |
# File 'lib/betabrite/files/dots.rb', line 6 def picture @picture end |
#rows ⇒ Object
Returns the value of attribute rows.
6 7 8 |
# File 'lib/betabrite/files/dots.rb', line 6 def rows @rows end |