Class: Markdo::CommandSupport

Inherits:
Object
  • Object
show all
Defined in:
lib/markdo/command_support.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stdin: STDIN, stdout: STDOUT, stderr: STDERR, env: ENV, today: Date.today) ⇒ CommandSupport

Returns a new instance of CommandSupport.



6
7
8
9
10
11
12
# File 'lib/markdo/command_support.rb', line 6

def initialize(stdin: STDIN, stdout: STDOUT, stderr: STDERR, env: ENV, today: Date.today)
  @stdin = stdin
  @stdout = stdout
  @stderr = stderr
  @env = env
  @today = today
end

Instance Attribute Details

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/markdo/command_support.rb', line 3

def env
  @env
end

#stderrObject (readonly)

Returns the value of attribute stderr.



3
4
5
# File 'lib/markdo/command_support.rb', line 3

def stderr
  @stderr
end

#stdinObject

Returns the value of attribute stdin.



3
4
5
# File 'lib/markdo/command_support.rb', line 3

def stdin
  @stdin
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



3
4
5
# File 'lib/markdo/command_support.rb', line 3

def stdout
  @stdout
end

#todayObject (readonly)

Returns the value of attribute today.



3
4
5
# File 'lib/markdo/command_support.rb', line 3

def today
  @today
end