Class: Markdo::CommandSupport
- Inherits:
-
Object
- Object
- Markdo::CommandSupport
- Defined in:
- lib/markdo/command_support.rb
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdin ⇒ Object
Returns the value of attribute stdin.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
-
#today ⇒ Object
readonly
Returns the value of attribute today.
Instance Method Summary collapse
-
#initialize(stdin: STDIN, stdout: STDOUT, stderr: STDERR, env: ENV, today: Date.today) ⇒ CommandSupport
constructor
A new instance of CommandSupport.
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
#env ⇒ Object (readonly)
Returns the value of attribute env.
3 4 5 |
# File 'lib/markdo/command_support.rb', line 3 def env @env end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
3 4 5 |
# File 'lib/markdo/command_support.rb', line 3 def stderr @stderr end |
#stdin ⇒ Object
Returns the value of attribute stdin.
3 4 5 |
# File 'lib/markdo/command_support.rb', line 3 def stdin @stdin end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
3 4 5 |
# File 'lib/markdo/command_support.rb', line 3 def stdout @stdout end |
#today ⇒ Object (readonly)
Returns the value of attribute today.
3 4 5 |
# File 'lib/markdo/command_support.rb', line 3 def today @today end |