Class: Listen::Adapter::Base
- Inherits:
-
Object
- Object
- Listen::Adapter::Base
- Includes:
- Celluloid
- Defined in:
- lib/listen/adapter/base.rb
Constant Summary collapse
- DEFAULT_LATENCY =
The default delay between checking for changes.
0.1
Instance Attribute Summary collapse
-
#listener ⇒ Object
Returns the value of attribute listener.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(listener) ⇒ Base
constructor
A new instance of Base.
- #start ⇒ Object
Constructor Details
#initialize(listener) ⇒ Base
Returns a new instance of Base.
12 13 14 |
# File 'lib/listen/adapter/base.rb', line 12 def initialize(listener) @listener = listener end |
Instance Attribute Details
#listener ⇒ Object
Returns the value of attribute listener.
10 11 12 |
# File 'lib/listen/adapter/base.rb', line 10 def listener @listener end |
Class Method Details
.usable? ⇒ Boolean
16 17 18 |
# File 'lib/listen/adapter/base.rb', line 16 def self.usable? raise NotImplementedError end |
Instance Method Details
#start ⇒ Object
20 21 22 |
# File 'lib/listen/adapter/base.rb', line 20 def start raise NotImplementedError end |