Class: CodeSnippet::Commands::PrintPath

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

Overview

Prints gem version to STDOUT

Instance Method Summary collapse

Constructor Details

#initialize(snip_dir, options = Hashie::Mash.new) ⇒ PrintPath

Returns a new instance of PrintPath.



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

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

Instance Method Details

#runObject

Prints gem version



15
16
17
# File 'lib/code_snippet/commands/print_path.rb', line 15

def run
  puts(@snip_dir)
end