lib/ludy/kernel/tap.rb in ludy-0.1.10 vs lib/ludy/kernel/tap.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 tap
yield self
self
end