Class: Tranexp::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/tranexp/command.rb

Class Method Summary collapse

Class Method Details

.run(text, from, to = "eng") ⇒ Object



3
4
5
6
# File 'lib/tranexp/command.rb', line 3

def self.run(text, from, to="eng")
  translate = Tranexp::Http.new
  translate.translate(text, from, to)
end