Class: BetaBrite::Files::String
- Inherits:
-
Object
- Object
- BetaBrite::Files::String
- Includes:
- BetaBrite::FileDSL
- Defined in:
- lib/betabrite/files/string.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
-
#initialize(label = nil, message = nil, &block) ⇒ String
constructor
A new instance of String.
- #to_s ⇒ Object (also: #to_str)
Methods included from BetaBrite::FileDSL
Constructor Details
#initialize(label = nil, message = nil, &block) ⇒ String
Returns a new instance of String.
9 10 11 12 13 |
# File 'lib/betabrite/files/string.rb', line 9 def initialize(label = nil, = nil, &block) @label = label @message = instance_eval(&block) if block end |
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label.
6 7 8 |
# File 'lib/betabrite/files/string.rb', line 6 def label @label end |
#message ⇒ Object
Returns the value of attribute message.
6 7 8 |
# File 'lib/betabrite/files/string.rb', line 6 def @message end |