lib/mack-facets/extensions/kernel.rb in mack-facets-0.8.2 vs lib/mack-facets/extensions/kernel.rb in mack-facets-0.8.3

- old
+ new

@@ -89,6 +89,14 @@ # Returns true/false if the current version of Ruby equals the specified version def ruby?(v) RUBY_VERSION == v end + def v1_8? + RUBY_VERSION >= '1.8.0' && RUBY_VERSION < '1.9.0' + end + + def v1_9? + RUBY_VERSION >= '1.9.0' && RUBY_VERSION < '2.0.0' + end + end