Sha256: 9a6a99b55d363a142ae345f706179aad2c0b35f45f5f39449795cfa7ac2699ab

Contents?: true

Size: 425 Bytes

Versions: 27

Compression:

Stored size: 425 Bytes

Contents

# encoding: utf-8
require 'fedux_org_stdlib/command_finder'

module FeduxOrgStdlib
  # Look for editor in PATH
  #
  # @example Usage
  #
  #   editor = Editor.new
  #   editor.path #=> /usr/bin/vim if vim exists at /usr/bin
  class Editor < CommandFinder
    def initialize(editors: %w(vim vi emacs nano), search_paths: ENV['PATH'].split(/:/))
      super alternatives: editors, search_paths: search_paths
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
fedux_org-stdlib-0.11.18 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.17 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.16 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.15 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.14 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.12 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.11 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.9 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.8 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.7 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.6 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.5 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.4 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.3 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.2 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.1 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.11.0 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.10.9 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.10.8 lib/fedux_org_stdlib/editor.rb
fedux_org-stdlib-0.10.7 lib/fedux_org_stdlib/editor.rb