class Gem::Commands::CurrentVersionCommand
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/rubygems/commands/current_version_command.rb, line 33 def initialize super 'current_version', "Display a gem's current version" end
Public Instance Methods
arguments()
click to toggle source
# File lib/rubygems/commands/current_version_command.rb, line 37 def arguments 'GEMNAME name of gem to display' end
execute()
click to toggle source
# File lib/rubygems/commands/current_version_command.rb, line 45 def execute version = CurrentGem.version_for(get_one_gem_name) say version if version end
usage()
click to toggle source
# File lib/rubygems/commands/current_version_command.rb, line 41 def usage "#{program_name} GEMNAME" end