Class: Scmd::Call

Inherits:
Struct
  • Object
show all
Defined in:
lib/scmd.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cmd_spy, input) ⇒ Call

Returns a new instance of Call.



43
44
45
# File 'lib/scmd.rb', line 43

def initialize(cmd_spy, input)
  super(cmd_spy.cmd_str, input, cmd_spy)
end

Instance Attribute Details

#cmdObject

Returns the value of attribute cmd

Returns:

  • (Object)

    the current value of cmd



42
43
44
# File 'lib/scmd.rb', line 42

def cmd
  @cmd
end

#cmd_strObject

Returns the value of attribute cmd_str

Returns:

  • (Object)

    the current value of cmd_str



42
43
44
# File 'lib/scmd.rb', line 42

def cmd_str
  @cmd_str
end

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



42
43
44
# File 'lib/scmd.rb', line 42

def input
  @input
end