Class: NATOPhone::Decoder
Overview
End of class Encoder
Instance Attribute Summary collapse
-
#decode ⇒ Object
Returns the value of attribute decode.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(args) ⇒ Decoder
constructor
A new instance of Decoder.
- #to_a ⇒ Object
- #to_json ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(args) ⇒ Decoder
Returns a new instance of Decoder.
95 96 97 98 99 100 101 |
# File 'lib/app.rb', line 95 def initialize(args) super(args) @dic = otan_alphabet_decode() @decode = convert(args) @translate = @decode.join() @yell = @translate.upcase end |
Instance Attribute Details
#decode ⇒ Object
Returns the value of attribute decode.
93 94 95 |
# File 'lib/app.rb', line 93 def decode @decode end |
Instance Method Details
#to_a ⇒ Object
116 117 118 |
# File 'lib/app.rb', line 116 def to_a @decode end |
#to_json ⇒ Object
103 104 105 106 107 108 109 110 |
# File 'lib/app.rb', line 103 def to_json { 'args' => @args, 'decode' => @decode, 'translate' => @translate, 'yell' => @yell }.to_json end |
#to_s ⇒ Object
112 113 114 |
# File 'lib/app.rb', line 112 def to_s @translate end |