Class: IRB::Kit::Handlers::Abstract
- Inherits:
-
Object
- Object
- IRB::Kit::Handlers::Abstract
- Defined in:
- lib/irb/kit/handlers/abstract.rb
Overview
Provides default functionality for all handlers.
Direct Known Subclasses
Clipper, ConstantEditor, Descender, Editor, MethodEditor, Paster, Searcher
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(io: STDOUT) ⇒ Abstract
constructor
A new instance of Abstract.
Constructor Details
#initialize(io: STDOUT) ⇒ Abstract
Returns a new instance of Abstract.
8 9 10 |
# File 'lib/irb/kit/handlers/abstract.rb', line 8 def initialize io: STDOUT @io = io end |
Instance Method Details
#call ⇒ Object
12 13 14 15 |
# File 'lib/irb/kit/handlers/abstract.rb', line 12 def call fail NoMethodError, "`#{self.class}##{__method__} #{method(__method__).parameters}` must be implemented." end |