Class: CodeSnippet::Commands::PrintVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/code_snippet/commands/print_version.rb

Overview

Prints snippet path to STDOUT

Instance Method Summary collapse

Constructor Details

#initialize(options = Hashie::Mash.new) ⇒ PrintVersion

Returns a new instance of PrintVersion.



7
8
9
# File 'lib/code_snippet/commands/print_version.rb', line 7

def initialize(options = Hashie::Mash.new)
  @options = options
end

Instance Method Details

#runObject

Prints snippet path



14
15
16
# File 'lib/code_snippet/commands/print_version.rb', line 14

def run
  puts(CodeSnippet::VERSION)
end