Module: Pontifex
- Extended by:
- Pontifex
- Included in:
- Pontifex
- Defined in:
- lib/pontifex.rb,
lib/pontifex/card.rb,
lib/pontifex/cipher.rb,
lib/pontifex/key_stream.rb
Defined Under Namespace
Classes: Card, Cipher, KeyStream
Constant Summary collapse
- DEFAULT_KEY =
"Ac,2c,3c,4c,5c,6c,7c,8c,9c,Tc,Jc,Qc,Kc," + "Ad,2d,3d,4d,5d,6d,7d,8d,9d,Td,Jd,Qd,Kd," + "Ah,2h,3h,4h,5h,6h,7h,8h,9h,Th,Jh,Qh,Kh," + "As,2s,3s,4s,5s,6s,7s,8s,9s,Ts,Js,Qs,Ks," + "ja,jb"
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pontifex.rb', line 9 def run case @cmd when "encrypt" @output = @pontifex.encrypted when "decrypt" @output = @pontifex.decrypted end handle_output end |