Class: Incline::CLI::Version

Inherits:
Object
  • Object
show all
Defined in:
lib/incline/cli/version.rb

Overview

Defines the ‘version’ command for the CLI.

Instance Method Summary collapse

Constructor Details

#initializeVersion

Creates a new ‘version’ command for the CLI.



11
12
13
# File 'lib/incline/cli/version.rb', line 11

def initialize

end

Instance Method Details

#runObject

Shows the version of the Incline library.



17
18
19
# File 'lib/incline/cli/version.rb', line 17

def run
  STDOUT.puts "Incline v#{Incline::VERSION}"
end