Class: IRB::Kit::Helpers::Search

Inherits:
HelperMethod::Base
  • Object
show all
Defined in:
lib/irb/kit/helpers/search.rb

Overview

Search an object’s methods by pattern.

Constant Summary collapse

MONIKER =
:search

Instance Method Summary collapse

Constructor Details

#initialize(handler: Handlers::Searcher.new) ⇒ Search

Returns a new instance of Search.



12
13
14
15
# File 'lib/irb/kit/helpers/search.rb', line 12

def initialize handler: Handlers::Searcher.new
  super()
  @handler = handler
end

Instance Method Details

#executeObject



17
# File 'lib/irb/kit/helpers/search.rb', line 17

def execute(*) = handler.call(*)