Module: Space2hyphen
- Defined in:
- lib/space2hyphen.rb,
lib/space2hyphen/version.rb
Overview
This module holds the Space2hyphen version information.
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
Class Method Details
.convert(argv) ⇒ Object
7 8 9 |
# File 'lib/space2hyphen.rb', line 7 def self.convert(argv) argv.length == 1 ? argv[0].strip.gsub(/\s/, '-') : argv.join('-') end |
.create_new_branch(hyphen_include_sentence) ⇒ Object
11 12 13 |
# File 'lib/space2hyphen.rb', line 11 def self.create_new_branch(hyphen_include_sentence) system "git checkout -b #{hyphen_include_sentence}" end |