File: mock_application.rb

package info (click to toggle)
ruby-launchy 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 304 kB
  • sloc: ruby: 1,051; makefile: 6
file content (15 lines) | stat: -rw-r--r-- 267 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class MockApplication < Launchy::Application
  def self.schemes
    %w[mock mockother]
  end

  def self.handles?(uri)
    schemes.include?(uri.scheme)
  end

  def open(uri, _options = {})
    "MockApplication opened #{uri}"
  end
end