Method: Less::Command#watch

Defined in:
lib/less/command.rb

#watchObject

little function which allows us to Ctrl-C exit inside the passed block



18
19
20
21
22
23
24
25
# File 'lib/less/command.rb', line 18

def watch
  begin
    yield
  rescue Interrupt
    puts
    exit 0
  end
end