class Ciphr::Functions::Ascii::Rot13
Public Class Methods
params()
click to toggle source
# File lib/ciphr/functions/ascii.rb, line 21 def self.params [:input] end
variants()
click to toggle source
# File lib/ciphr/functions/ascii.rb, line 15 def self.variants [ ['rot13', {}] ] end
Public Instance Methods
apply()
click to toggle source
# File lib/ciphr/functions/ascii.rb, line 3 def apply input = @args[0] Proc.new do inchunk = input.read(256) if inchunk inchunk.tr("A-Za-z", "N-ZA-Mn-za-m") else nil end end end