Sha256: 7aa9291c01575ad35fd26bc92fbb92fd975dc121bcae72134596626f4491662e
Contents?: true
Size: 498 Bytes
Versions: 3
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
karabiner-0.1.2 | lib/karabiner/appdef.rb |
karabiner-0.1.1 | lib/karabiner/appdef.rb |
karabiner-0.1.0 | lib/karabiner/appdef.rb |