Class: Logging::IO::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/logging/io.rb

Overview

This class is abstract.

Subclass and override #write.

Direct Known Subclasses

AMQP, Raw

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label) ⇒ Base

Returns a new instance of Base.

Parameters:

  • label (String)

    Label. For instance ‘logs.app.db`.



17
18
19
# File 'lib/logging/io.rb', line 17

def initialize(label)
  @label = label
end

Instance Attribute Details

#labelObject (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

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/logging/io.rb', line 21

def write(message)
  raise NotImplementedError.new
end