lib/command_kit/options/version.rb in command_kit-0.1.0.rc1 vs lib/command_kit/options/version.rb in command_kit-0.1.0

- old
+ new

@@ -33,10 +33,12 @@ # string. # # @return [String, nil] # The classes version string. # + # @api public + # def version(new_version=nil) if new_version @version = new_version else @version || (superclass.version if superclass.kind_of?(ClassMethods)) @@ -45,15 +47,19 @@ end # # @see ClassMethods#version # + # @api public + # def version self.class.version end # # Prints the version. + # + # @api public # def print_version puts "#{command_name} #{version}" end end