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)
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.
29 30 |
# File 'lib/cinch/dcc/dccable_object.rb', line 29 def path end |
#read(number) ⇒ String?
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 |
#size ⇒ Integer
Returns The total size of the data, in bytes.
33 34 |
# File 'lib/cinch/dcc/dccable_object.rb', line 33 def size end |