-
-
Save eval/66f7bfaf17d364ddd232 to your computer and use it in GitHub Desktop.
micro-gem-single
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Gem::Specification.new do |s| | |
s.name = 'rot13' | |
s.version = '0.0.1' | |
s.require_path = '.' | |
s.summary = 'Some summary' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class String | |
def rot13 | |
each_char.map{|c| (c.ord + 13).chr }.join | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment