Sha256: 944aba656e0a1c2e83c61742b19c8d2d2073698254c88e0f31a1754768760de3
Contents?: true
Size: 334 Bytes
Versions: 1
Compression:
Stored size: 334 Bytes
Contents
# coding: utf-8 require 'space2hyphen/version' # This is the main functions. module Space2hyphen def self.convert(argv) argv.length == 1 ? argv[0].strip.gsub(/\s/, '-') : argv.join('-') end def self.create_new_branch(hyphen_include_sentence) system "git checkout -b #{hyphen_include_sentence} &> /dev/null" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
space2hyphen-0.0.1 | lib/space2hyphen.rb |