aboutsummaryrefslogblamecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/xchar.rb
blob: df186e42d78d8ec88a7f98376b273f93b54ec4ff (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
     
                                                 








                                                                
begin
  # See http://bogomips.org/fast_xs/ by Eric Wong
  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