Class: TamTam::Adapter
- Inherits:
-
Object
- Object
- TamTam::Adapter
- Defined in:
- lib/tam_tam/adapter.rb
Overview
An abstract base class for all adapters.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path = nil) ⇒ Adapter
constructor
A new instance of Adapter.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(path = nil) ⇒ Adapter
Returns a new instance of Adapter.
12 13 14 |
# File 'lib/tam_tam/adapter.rb', line 12 def initialize(path = nil) self.path = path || self.class.default_path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
10 11 12 |
# File 'lib/tam_tam/adapter.rb', line 10 def path @path end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
16 17 18 |
# File 'lib/tam_tam/adapter.rb', line 16 def to_s %{#<#{self.class.name}:0x#{object_id.to_s(16)} path="#{path}">} end |