Class: WIP::Runner::Shell::Handlers::Base
- Inherits:
-
Object
- Object
- WIP::Runner::Shell::Handlers::Base
- Defined in:
- lib/wip/runner/shell/handlers/base.rb
Instance Method Summary collapse
- #description ⇒ Object
- #execute(io, env, &block) ⇒ Object
-
#initialize(content, &block) ⇒ Base
constructor
A new instance of Base.
- #type ⇒ Object
Constructor Details
#initialize(content, &block) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/wip/runner/shell/handlers/base.rb', line 8 def initialize(content, &block) @content = clean(content) instance_exec(&block) if block_given? end |
Instance Method Details
#description ⇒ Object
13 14 15 |
# File 'lib/wip/runner/shell/handlers/base.rb', line 13 def description raise NotImplementedError end |
#execute(io, env, &block) ⇒ Object
17 18 19 |
# File 'lib/wip/runner/shell/handlers/base.rb', line 17 def execute(io, env, &block) raise NotImplementedError end |
#type ⇒ Object
21 22 23 |
# File 'lib/wip/runner/shell/handlers/base.rb', line 21 def type @type ||= self.class.name.split('::').last end |