# File 'lib/cli.rb', line 28defdecode(*args)dec=NATOPhone::Decoder.new(args)ifoptions[:yell]puts"\n#{dec.yell}\n\n"elsifoptions[:json]putsdec.to_jsonelseputs"\n#{dec}\n\n"endend
#encode(*args) ⇒ Object
13
14
15
16
17
18
19
20
21
22
# File 'lib/cli.rb', line 13defencode(*args)enc=NATOPhone::Encoder.new(args)ifoptions[:yell]puts"\n#{enc.yell}\n\n"elsifoptions[:json]putsenc.to_jsonelseputs"\n#{enc}\n\n"endend