Module: Caesar
- Defined in:
- lib/caesar.rb,
lib/caesar/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- A_ORD =
"A".ord
- Z_ORD =
"Z".ord
- ALPHABET_SIZE =
Z_ORD - A_ORD + 1
- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.decode(key, cipher_text) ⇒ Object
19 20 21 |
# File 'lib/caesar.rb', line 19 def self.decode(key, cipher_text) Decode.call(key, cipher_text) end |
.encode(key, plain_text) ⇒ Object
15 16 17 |
# File 'lib/caesar.rb', line 15 def self.encode(key, plain_text) Encode.call(key, plain_text) end |