Class: Ringc::Executor
- Inherits:
-
Object
- Object
- Ringc::Executor
- Extended by:
- Memoist
- Defined in:
- lib/ringc/executor.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #execute(command) ⇒ Object
-
#initialize(type, options) ⇒ Executor
constructor
A new instance of Executor.
Constructor Details
#initialize(type, options) ⇒ Executor
Returns a new instance of Executor.
9 10 11 12 |
# File 'lib/ringc/executor.rb', line 9 def initialize(type, ) @type = type = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/ringc/executor.rb', line 7 def end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/ringc/executor.rb', line 7 def type @type end |
Instance Method Details
#execute(command) ⇒ Object
14 15 16 |
# File 'lib/ringc/executor.rb', line 14 def execute(command) executor.run(command) end |