Class: Terminal::CLI
- Inherits:
-
Object
- Object
- Terminal::CLI
- Defined in:
- lib/terminal/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args, file) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize(args, file) ⇒ CLI
Returns a new instance of CLI.
7 8 9 10 |
# File 'lib/terminal/cli.rb', line 7 def initialize(args, file) @args = args @file = file end |
Class Method Details
.run(*args, file) ⇒ Object
3 4 5 |
# File 'lib/terminal/cli.rb', line 3 def self.run(*args, file) new(args, file).run end |
Instance Method Details
#run ⇒ Object
12 13 14 |
# File 'lib/terminal/cli.rb', line 12 def run puts @file end |