123456789_123456789_123456789_123456789_123456789_

Class: Prism::CodeUnitsCache::UTF8Counter

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/prism/parse_result.rb

Overview

Counter used for UTF-8, where one code unit equals one byte.

Instance Method Summary

Instance Method Details

#count(byte_offset, byte_length)

: (Integer byte_offset, Integer byte_length) -> Integer

[ GitHub ]

  
# File 'lib/prism/parse_result.rb', line 256

def count(byte_offset, byte_length)
  byte_length
end