Skip to content

Commit

Permalink
Merge pull request #584 from kachick/implement-symbol-capitalize
Browse files Browse the repository at this point in the history
Implement Symbol#capitalize
  • Loading branch information
alex committed Apr 9, 2013
2 parents 8aed98f + 88d6c5f commit 9992a67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 4 additions & 0 deletions lib-topaz/symbol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ def succ
end
alias next succ

def capitalize
self.to_s.capitalize.to_sym
end

def swapcase
self.to_s.swapcase.to_sym
end
Expand Down
9 changes: 0 additions & 9 deletions spec/tags/core/symbol/capitalize_tags.txt

This file was deleted.

0 comments on commit 9992a67

Please sign in to comment.