module Automux::Library

Public Instance Methods

get_file_opts(path) click to toggle source

Scan for patterns like “-w” or ‘-w’ to get a opts list.

# File lib/automux/library/file_options_parser.rb, line 32
def get_file_opts(path)
  File.read(path).scan(/(?<='|")-\w:?(?='|")/m)
end