Skip to content

Commit

Permalink
change another :-as-then to ;
Browse files Browse the repository at this point in the history
  • Loading branch information
coatl committed Jun 18, 2009
1 parent 1149611 commit e3625c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions regcore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ def ends_with
#it should work >99%, of the time I think.
def Reg.interesting_matcher?(mat) #a hack
case mat
when Integer,Float,Symbol,true,false,nil,Method,UnboundMethod: false
when ItemThatLike,BackrefLike,Module,Set,Regexp,Range,::Reg::Reg: true
#when Symbol,Pathname: false
when Integer,Float,Symbol,true,false,nil,Method,UnboundMethod; false
when ItemThatLike,BackrefLike,Module,Set,Regexp,Range,::Reg::Reg; true
#when Symbol,Pathname; false
else
/^#<UnboundMethod: .*\(Kernel\)#===>$/===mat.method(:===).unbind.inspect and return false
assert( /^#<UnboundMethod: .*\(?(#<)?[A-Z:][A-Za-z_:0-9]+\>?\)?#===>$/===mat.method(:===).unbind.inspect )
Expand Down

0 comments on commit e3625c7

Please sign in to comment.