Class: MVCLI::Command

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(argv, input, output, log, env) ⇒ Command

Returns a new instance of Command.



5
6
7
# File 'lib/mvcli/command.rb', line 5

def initialize(argv, input, output, log, env)
  @argv, @input, @output, @log, @env = argv, input, output, log, env
end

Instance Attribute Details

#argvObject (readonly)

Returns the value of attribute argv.



3
4
5
# File 'lib/mvcli/command.rb', line 3

def argv
  @argv
end

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/mvcli/command.rb', line 3

def env
  @env
end

#inputObject (readonly)

Returns the value of attribute input.



3
4
5
# File 'lib/mvcli/command.rb', line 3

def input
  @input
end

#logObject (readonly)

Returns the value of attribute log.



3
4
5
# File 'lib/mvcli/command.rb', line 3

def log
  @log
end

#outputObject (readonly)

Returns the value of attribute output.



3
4
5
# File 'lib/mvcli/command.rb', line 3

def output
  @output
end