projects
/
feedcatcher.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
df186e42d78d8ec88a7f98376b273f93b54ec4ff
[feedcatcher.git]
/
xchar.rb
1
begin
2
# See http://bogomips.org/fast_xs/ by Eric Wong
3
require
'fast_xs'
4
5
class
String
6
alias_method
:original_xs
,
:to_xs
if
method_defined
?(
:to_xs
)
7
alias_method
:to_xs
,
:fast_xs
8
end
9
rescue
LoadError
10
# fast_xs extension unavailable.
11
end