Class: IRB::Kit::Helpers::Paste

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

Overview

Pastes last entry from macOS clipboard.

Constant Summary collapse

MONIKER =
:paste

Instance Method Summary collapse

Constructor Details

#initialize(handler: Handlers::Paster.new) ⇒ Paste

Returns a new instance of Paste.



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

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

Instance Method Details

#executeObject



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

def execute = handler.call