public
Description: StrokeDB is an embeddable distributed document database written in Ruby
Homepage: http://strokedb.com/
Clone URL: git://github.com/yrashk/strokedb.git
Fix damn backtick
oleg dashevskii (author)
Sat Apr 12 21:33:19 -0700 2008
commit  261c441759dc20975953da5f875908ef3e063988
tree    963f5688681568f2e899e868de325cd7e9c0187a
parent  f6927ef74200ea4a909a2287b7ad622c74cb410a
...
19
20
21
22
 
 
23
24
25
...
29
30
31
32
33
 
 
34
35
36
...
38
39
40
41
42
 
...
19
20
21
 
22
23
24
25
26
...
30
31
32
 
 
33
34
35
36
37
...
39
40
41
 
42
43
0
@@ -19,7 +19,8 @@ class BlankSlate
0
     '<=>' => 'spaceship',
0
     '==' => 'equalequal',
0
     '===' => 'tripleequal',
0
- '=~' => 'regexmatch'
0
+ '=~' => 'regexmatch',
0
+ '`' => 'backtick',
0
   } unless defined? MethodMapping
0
 end
0
 
0
@@ -29,8 +30,8 @@ def BlankSlate superclass = nil
0
       instance_methods.sort.each { |m|
0
         unless m =~ /^__/
0
           mname = "__#{::BlankSlate::MethodMapping[m.to_s] || m}"
0
- begin ; class_eval "alias :#{mname} :#{m}" ; rescue SyntaxError ; end # we need this rescue to survive aliasing weird
0
- # methods names like `
0
+ class_eval "alias :#{mname} :'#{m}'"
0
+
0
           undef_method m
0
         end
0
       }
0
@@ -38,4 +39,4 @@ def BlankSlate superclass = nil
0
   else
0
     BlankSlate
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.