G2A Many GEOs
SHARE
TWEET

Translit

a guest Apr 7th, 2020 126 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require 'translit_net'
  2.  
  3. puts 'Введите фразу для транслитерации: '
  4.  
  5. phrase = STDIN.gets.chomp
  6. phrase_lat = phrase.translit({from: 'ru', to: 'en'})
  7.  
  8. if phrase == phrase_lat
  9.   puts phrase.translit({from: 'en', to: 'ru'})
  10. else
  11.   puts phrase_lat
  12. end
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top