Class: IRB::Kit::Handlers::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/irb/kit/handlers/abstract.rb

Overview

Provides default functionality for all handlers.

Instance Method Summary collapse

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

#callObject



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