Class: FoolEncryption
- Inherits:
-
Object
- Object
- FoolEncryption
- Defined in:
- lib/fool_encryption.rb
Class Method Summary collapse
Class Method Details
.change_char(char) ⇒ Object
2 3 4 5 6 7 8 9 10 |
# File 'lib/fool_encryption.rb', line 2 def self.change_char(char) if char =~ /[A-Ya-y]/ return char.succ elsif char == 'Z' || char == 'z' return (char.ord - 25).chr else return char end end |