Class: CodeSnippet::Commands::PrintPath
- Inherits:
-
Object
- Object
- CodeSnippet::Commands::PrintPath
- Defined in:
- lib/code_snippet/commands/print_path.rb
Overview
Prints gem version to STDOUT
Instance Method Summary collapse
-
#initialize(snip_dir, options = Hashie::Mash.new) ⇒ PrintPath
constructor
A new instance of PrintPath.
-
#run ⇒ Object
Prints gem version.
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, = Hashie::Mash.new) @snip_dir = snip_dir = end |
Instance Method Details
#run ⇒ Object
Prints gem version
15 16 17 |
# File 'lib/code_snippet/commands/print_path.rb', line 15 def run puts(@snip_dir) end |