Skip to content

Commit

Permalink
Implement Symbol#casecmp
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jun 12, 2013
1 parent 941d182 commit 067278b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 4 additions & 0 deletions lib-topaz/symbol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ def =~(pattern)
def swapcase
self.to_s.swapcase.to_sym
end

def casecmp(other)
other.instance_of?(Symbol) ? self.to_s.casecmp(other.to_s) : nil
end
end
6 changes: 0 additions & 6 deletions spec/tags/core/symbol/casecmp_tags.txt

This file was deleted.

0 comments on commit 067278b

Please sign in to comment.