Class: Lingvo::Console::Command
- Inherits:
-
Object
- Object
- Lingvo::Console::Command
- Defined in:
- lib/lingvo/console/command.rb
Class Method Summary collapse
- .gui ⇒ Object
- .help ⇒ Object
- .notify ⇒ Object
- .parse(path) ⇒ Object
- .rand(count) ⇒ Object
- .size ⇒ Object
Class Method Details
.help ⇒ Object
71 72 73 |
# File 'lib/lingvo/console/command.rb', line 71 def help puts HELP end |
.notify ⇒ Object
63 64 65 |
# File 'lib/lingvo/console/command.rb', line 63 def notify GUI::Notify.run end |
.parse(path) ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/lingvo/console/command.rb', line 39 def parse(path) if File.exists? path parser = Parsers::Lingualeo.new path Models::English.create parser.words size else puts "File not found!" help end end |