lib/sane.rb in rogerdpack-sane-0.1.1 vs lib/sane.rb in rogerdpack-sane-0.1.2
- old
+ new
@@ -55,9 +55,13 @@
def aliaz hash
hash.each_pair {|new, old|
alias_method new, old
}
end
+
+ def singleton_class
+ class << self; self; end
+ end
end
if RUBY_VERSION < '1.9'
# TODO require 'unique_require' # require things in the right order, on 1.8.x
end