Module: Rubyists::Linear::CLI::Watcher

Defined in:
lib/linear/cli/watcher.rb

Overview

Watch for the call method to be added to a command

Class Method Summary collapse

Class Method Details

.extended(_mod) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/linear/cli/watcher.rb', line 8

def self.extended(_mod)
  define_method :method_added do |method_name|
    return unless method_name == :call

    prepend Rubyists::Linear::CLI::Caller
  end
end