Module: Cinch::DCC::DCCableObject Abstract
- Defined in:
- lib/cinch/dcc/dccable_object.rb
Overview
This module is abstract.
Note:
File conforms to this interface.
This module describes the required interface for objects that should be sendable via DCC.
Instance Method Summary (collapse)
-
- (String) path
A string representing the object’s path or name.
-
- (String?) read(number)
Return the next
numberbytes of the object. -
- seek(position)
Seek to a specific position.
-
- (Integer) size
The total size of the data, in bytes.
Instance Method Details
- (String) path
Note:
This is only required if calling User#dcc_send with only one argument
A string representing the object’s path or name.
29 30 |
# File 'lib/cinch/dcc/dccable_object.rb', line 29 def path end |
- (String?) read(number)
Return the next number bytes of the object.
15 16 |
# File 'lib/cinch/dcc/dccable_object.rb', line 15 def read(number) end |
- seek(position)
This method returns an undefined value.
Seek to a specific position.
22 23 |
# File 'lib/cinch/dcc/dccable_object.rb', line 22 def seek(position) end |
- (Integer) size
The total size of the data, in bytes.
33 34 |
# File 'lib/cinch/dcc/dccable_object.rb', line 33 def size end |