lib/more/facets/version.rb in facets-2.4.3 vs lib/more/facets/version.rb in facets-2.4.4
- old
+ new
@@ -86,9 +86,23 @@
# Teeny is third number in the version series.
def teeny ; @self[2] || 0 ; end
+ #
+ def bump(which=:teeny)
+ case which
+ when :major
+ self.class.new(major+1)
+ when :minor
+ self.class.new(major, minor+1)
+ when :teeny
+ self.class.new(major, minor, teeny+1)
+ else
+ # ???
+ end
+ end
+
# Delegate to the array.
def method_missing( sym, *args, &blk )
@self.send(sym, *args, &blk ) rescue super
end