Sha256: 688d71c41a528dfe801ccd104fee2a7e861e1132bdd6fe0c76c3247547d53493
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# NATOPhone Simple tool to encode/decode [NATO alphabet](https://en.wikipedia.org/wiki/NATO_phonetic_alphabet). ## Installation ### CLI $ gem install natophone ### Library Add this line to your application's Gemfile: ```ruby gem 'natophone' ``` And then execute: $ bundle ## Usage ### CLI $ natophone encode Hello world. $ natophone encode --yell Hello world. $ natophone encode --json Hello world. $ natophone decode hotel echo lima lima oscar - whiskey oscar romeo lima delta stop $ natophone decode --yell hotel echo lima lima oscar - whiskey oscar romeo lima delta stop $ natophone decode --json hotel echo lima lima oscar - whiskey oscar romeo lima delta stop ### Library ```ruby require 'natophone' ``` ```ruby enc_by_string = NATOPhone::Encoder.new('hello world') enc_by_array = NATOPhone::Encoder.new(['hello', 'world']) ``` ```ruby dec_by_string = NATOPhone::Decoder.new('hotel echo lima lima oscar - whiskey oscar romeo lima delta') dec_by_array = NATOPhone::Decoder.new(%w{hotel echo lima lima oscar - whiskey oscar romeo lima delta}) ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
natophone-0.0.2 | README.md |