Permalink
Browse files

Fix initialization of Accessibility.debug on MRI

Since MRI doesn't have the same "feature" related
to metaclasses that MacRuby does.
  • Loading branch information...
1 parent 3eb4778 commit 0ef24b033e35da8e5bdac3aba2907154a933b87c @ferrous26 ferrous26 committed Feb 2, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/accessibility.rb
View
@@ -1,10 +1,12 @@
require 'accessibility/version'
require 'ax/application'
-class << Accessibility
-
+module Accessibility
# Initialize the DEBUG value
@debug = ENV.fetch 'AXDEBUG', $DEBUG
+end
+
+class << Accessibility
##
# Whether or not to turn on DEBUG features in AXElements. The

0 comments on commit 0ef24b0

Please sign in to comment.