no muflax

master
Stefan Dorn 2016-06-12 06:51:49 +01:00
parent 61a8817f2e
commit 79b747a5fe
1 changed files with 13 additions and 1 deletions

View File

@ -3,7 +3,19 @@
# Copyright muflax <mail@muflax.com>, 2015
# License: GNU GPLv3 (or later) <http://www.gnu.org/copyleft/gpl.html>
# require "muflax"
# avoid having to require muflax
class Object
def blank?
respond_to?(:empty?) ? !!empty? : !self
end
end
class String
BLANK_RE = /\A[[:space:]]*\z/
def blank?
BLANK_RE === self
end
end
LayoutDir = "src/keyboard"
LayoutFile = "#{LayoutDir}/layout.c"