lib/ludy/kernel/singleton_method.rb in ludy-0.1.10 vs lib/ludy/kernel/singleton_method.rb in ludy-0.1.11
- old
+ new
@@ -1,7 +1,9 @@
+require 'ludy/version'
+
module Kernel
- if RUBY_VERSION < '1.9.0'
+ if Ludy::ruby_before '1.9.0'
# it would be defined if RUBY_VERSION < '1.9.0', see rdoc in ruby 1.9
def define_singleton_method msg, &block
self.class.__send__ :define_method, msg, &block
end
end