Class: IRB::Kit::Helpers::Clip

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

Overview

Copies input to macOS clipboard.

Constant Summary collapse

MONIKER =
:clip

Instance Method Summary collapse

Constructor Details

#initialize(handler: Handlers::Clipper.new) ⇒ Clip

Returns a new instance of Clip.



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

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

Instance Method Details

#executeObject



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

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