class Twiddler::TargetBuilder::Macros
Public Instance Methods
filename()
click to toggle source
# File lib/twiddler/target_builder.rb, line 71 def filename "Macros" end
regexp()
click to toggle source
# File lib/twiddler/target_builder.rb, line 75 def regexp macros = @config.keyboard.find_all do |chord| chord.keystrokes.length > 1 and chord.keystrokes.all? do |stroke| stroke[1].empty? end end return %r{^.{0,1}(?:#{match_any_of(macros.map{|chord| chord.render_action})}).{0,1}$} end