Class: Terminal::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/terminal/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#runObject



12
13
14
# File 'lib/terminal/cli.rb', line 12

def run
  puts @file
end