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
-
#path ⇒ String
A string representing the object’s path or name.
-
#read(number) ⇒ String?
Return the next ‘number` bytes of the object.
-
#seek(position) ⇒ void
Seek to a specific position.
-
#size ⇒ Integer
The total size of the data, in bytes.
Instance Method Details
#path ⇒ String
Note:
This is only required if calling User#dcc_send with only one argument
Returns A string representing the object’s path or name.
31 32 |
# File 'lib/cinch/dcc/dccable_object.rb', line 31 def path end |
#read(number) ⇒ String?
Return the next ‘number` bytes of the object.
17 18 |
# File 'lib/cinch/dcc/dccable_object.rb', line 17 def read(number) end |
#seek(position) ⇒ void
This method returns an undefined value.
Seek to a specific position.
24 25 |
# File 'lib/cinch/dcc/dccable_object.rb', line 24 def seek(position) end |
#size ⇒ Integer
Returns The total size of the data, in bytes.
35 36 |
# File 'lib/cinch/dcc/dccable_object.rb', line 35 def size end |