Class: Y::Lib0::Encoding::Encoder
- Inherits:
-
Object
- Object
- Y::Lib0::Encoding::Encoder
- Defined in:
- lib/y/lib0/encoding.rb
Instance Attribute Summary collapse
-
#bufs ⇒ Object
Returns the value of attribute bufs.
-
#cbuf ⇒ Object
Returns the value of attribute cbuf.
-
#cpos ⇒ Object
Returns the value of attribute cpos.
Instance Method Summary collapse
-
#initialize ⇒ Encoder
constructor
A new instance of Encoder.
Constructor Details
#initialize ⇒ Encoder
Returns a new instance of Encoder.
9 10 11 12 13 |
# File 'lib/y/lib0/encoding.rb', line 9 def initialize @cpos = 0 @cbuf = TypedArray.new(100) @bufs = [] end |
Instance Attribute Details
#bufs ⇒ Object
Returns the value of attribute bufs.
7 8 9 |
# File 'lib/y/lib0/encoding.rb', line 7 def bufs @bufs end |
#cbuf ⇒ Object
Returns the value of attribute cbuf.
7 8 9 |
# File 'lib/y/lib0/encoding.rb', line 7 def cbuf @cbuf end |
#cpos ⇒ Object
Returns the value of attribute cpos.
7 8 9 |
# File 'lib/y/lib0/encoding.rb', line 7 def cpos @cpos end |