Class: OTerm::Executor::Cmd
- Inherits:
-
Object
- Object
- OTerm::Executor::Cmd
- Defined in:
- lib/oterm/executor.rb
Instance Attribute Summary collapse
-
#desc ⇒ Object
Returns the value of attribute desc.
-
#op ⇒ Object
Returns the value of attribute op.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, op, summary, desc) ⇒ Cmd
constructor
A new instance of Cmd.
Constructor Details
#initialize(target, op, summary, desc) ⇒ Cmd
Returns a new instance of Cmd.
134 135 136 137 138 139 140 141 142 143 |
# File 'lib/oterm/executor.rb', line 134 def initialize(target, op, summary, desc) @target = target @op = op @summary = summary if desc.nil? @desc = summary else @desc = desc.split("\n") end end |
Instance Attribute Details
#desc ⇒ Object
Returns the value of attribute desc.
132 133 134 |
# File 'lib/oterm/executor.rb', line 132 def desc @desc end |
#op ⇒ Object
Returns the value of attribute op.
130 131 132 |
# File 'lib/oterm/executor.rb', line 130 def op @op end |
#summary ⇒ Object
Returns the value of attribute summary.
131 132 133 |
# File 'lib/oterm/executor.rb', line 131 def summary @summary end |
#target ⇒ Object
Returns the value of attribute target.
129 130 131 |
# File 'lib/oterm/executor.rb', line 129 def target @target end |