Class: Trenni::IOBuffer
- Inherits:
-
Object
- Object
- Trenni::IOBuffer
- Defined in:
- lib/trenni/buffer.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(io, path: io.inspect) ⇒ IOBuffer
constructor
A new instance of IOBuffer.
- #read ⇒ Object
- #to_buffer ⇒ Object
Constructor Details
#initialize(io, path: io.inspect) ⇒ IOBuffer
Returns a new instance of IOBuffer.
64 65 66 67 |
# File 'lib/trenni/buffer.rb', line 64 def initialize(io, path: io.inspect) @io = io @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
69 70 71 |
# File 'lib/trenni/buffer.rb', line 69 def path @path end |