Sha256: b401f2803fc12c82c824186ff7f485627b312501da9839fd5cd52c9e9b282ca0
Contents?: true
Size: 498 Bytes
Versions: 5
Compression:
Stored size: 498 Bytes
Contents
require "karabiner/xml_tree" class Karabiner::Appdef include Karabiner::XmlTree AVAILABLE_OPTIONS = %i[ equal prefix suffix ].freeze def initialize(appname, options) property = Karabiner::Property.new("appname", appname) add_child(property) options.each do |option, value| raise "Unavailable option: #{property}" unless AVAILABLE_OPTIONS.include?(option) property = Karabiner::Property.new(option, value) add_child(property) end end end
Version data entries
5 entries across 5 versions & 1 rubygems