Class: BetaBrite::StringFile
- Inherits:
-
Object
- Object
- BetaBrite::StringFile
- Defined in:
- lib/files/stringfile.rb
Constant Summary collapse
- COMMAND_CODE =
'G'
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #id ⇒ Object
-
#initialize(label = nil, message = nil) {|_self| ... } ⇒ StringFile
constructor
A new instance of StringFile.
- #to_s ⇒ Object
Constructor Details
#initialize(label = nil, message = nil) {|_self| ... } ⇒ StringFile
Returns a new instance of StringFile.
7 8 9 10 11 |
# File 'lib/files/stringfile.rb', line 7 def initialize(label = nil, = nil) @label = label @message = yield self if block_given? end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
5 6 7 |
# File 'lib/files/stringfile.rb', line 5 def label @label end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/files/stringfile.rb', line 5 def @message end |