Class: Logging::IO::Base Abstract
- Inherits:
-
Object
- Object
- Logging::IO::Base
- Defined in:
- lib/logging/io.rb
Overview
This class is abstract.
Subclass and override #write.
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label) ⇒ Base
constructor
A new instance of Base.
- #write(message) ⇒ Object
Constructor Details
#initialize(label) ⇒ Base
Returns a new instance of Base.
17 18 19 |
# File 'lib/logging/io.rb', line 17 def initialize(label) @label = label end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
14 15 16 |
# File 'lib/logging/io.rb', line 14 def label @label end |
Instance Method Details
#write(message) ⇒ Object
21 22 23 |
# File 'lib/logging/io.rb', line 21 def write() raise NotImplementedError.new end |