commit e4fad1495888b190e3db43a27bb7224ebe52e033
parent 268c325b587183096841a4a317488ec1cbeed60d
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Thu, 31 Aug 2006 09:10:58 -0700
[project @ 8a485bf237728236cb1c1be9c996bbc676010d25]
[project @ 28]
rm unneeded require
Diffstat:
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/wmii.rb b/wmii.rb
@@ -1,4 +1,3 @@
-# Ruby interface to WMII.
=begin
Copyright 2006 Suraj N. Kurapati
Copyright 2006 Stephan Maka
@@ -22,7 +21,6 @@ $:.unshift File.join(File.dirname(__FILE__), 'ruby-ixp', 'lib')
require 'ixp'
require 'find'
-require 'singleton'
# Encapsulates access to a file in the IXP file system
@@ -96,17 +94,15 @@ class IxpFile
def method_missing aMeth, *aArgs
if aMeth.to_s =~ /=$/
write "#{@path}/#{$`}", *aArgs
-
elsif content = read("#{@path}/#{aMeth}")
content
-
else
super
-
end
end
end
+# Ruby interface to WMII.
class Wmii < IxpFile
SELECTION_TAG = 'SEL'
DETACHED_TAG = 'status'