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