Class: Getch::Command

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

Direct Known Subclasses

Chroot

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Command

Returns a new instance of Command.



10
11
12
13
14
# File 'lib/getch/command.rb', line 10

def initialize(*args)
  @cmd = args.join(' ')
  @log = Getch::Log.new
  x
end

Instance Attribute Details

#resObject (readonly)

Returns the value of attribute res.



8
9
10
# File 'lib/getch/command.rb', line 8

def res
  @res
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/getch/command.rb', line 16

def to_s
  @res
end