Class: BetaBrite::DotsFile
- Inherits:
-
Object
- Object
- BetaBrite::DotsFile
- Defined in:
- lib/files/dotsfile.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
- #id ⇒ Object
-
#initialize(label, rows, columns, picture) ⇒ DotsFile
constructor
A new instance of DotsFile.
- #to_s ⇒ Object
Constructor Details
#initialize(label, rows, columns, picture) ⇒ DotsFile
Returns a new instance of DotsFile.
7 8 9 10 11 12 |
# File 'lib/files/dotsfile.rb', line 7 def initialize(label, rows, columns, picture) @label = label @rows = rows @columns = columns @picture = picture end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
5 6 7 |
# File 'lib/files/dotsfile.rb', line 5 def columns @columns end |
#label ⇒ Object
Returns the value of attribute label.
5 6 7 |
# File 'lib/files/dotsfile.rb', line 5 def label @label end |
#picture ⇒ Object
Returns the value of attribute picture.
5 6 7 |
# File 'lib/files/dotsfile.rb', line 5 def picture @picture end |
#rows ⇒ Object
Returns the value of attribute rows.
5 6 7 |
# File 'lib/files/dotsfile.rb', line 5 def rows @rows end |