Class: ActiveSupport::Multibyte::Handlers::PassthruHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/active_support/multibyte/handlers/passthru_handler.rb

Overview

Chars uses this handler when $KCODE is not set to 'UTF8'. Because this handler doesn't define any methods all call will be forwarded to String.

Class Method Summary collapse

Class Method Details

.translate_offset(string, byte_offset) ⇒ Object

Return the original byteoffset


6
7
8
# File 'lib/active_support/multibyte/handlers/passthru_handler.rb', line 6

def self.translate_offset(string, byte_offset) #:nodoc:
  byte_offset
end