On Fri, Nov 11, 2011 at 9:28 PM, Chad Perrin <code / apotheon.net> wrote:
> What's the best way to specify the version number and give the code
> executed when the --version argument is supplied the ability to access
> that version number?

module MyAwesomeTool
  VERSION = "0.1.0-1" # Major, minor, tiny, patch-level
end

puts MyAwesomeTool::VERSION


-- 
Phillip Gawlowski

gplus.to/phgaw | twitter.com/phgaw

A method of solution is perfect if we can forsee from the start,
and even prove, that following that method we shall attain our aim.
-- Leibniz