aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/xchar.rb
blob: d6aa4aa036c3dea1700d67428ccff7728be585e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
begin
  require 'fast_xs'

  class String
    alias_method :original_xs, :to_xs if method_defined?(:to_xs)
    alias_method :to_xs, :fast_xs
  end
rescue LoadError
  # fast_xs extension unavailable.
end