aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/multibyte/handlers/passthru_handler.rb
blob: b28e345585f854f40342c26676af28d842c10848 (plain) (blame)
1
2
3
4
5
6
7
8
9
# 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 ActiveSupport::Multibyte::Handlers::PassthruHandler
  
  # Return the original byteoffset
  def self.translate_offset(string, byte_offset) #:nodoc:
    byte_offset
  end
end