module Space2hyphen

This is the main functions.

This module holds the Space2hyphen version information.

Constants

VERSION

Public Class Methods

convert(argv) click to toggle source
# File lib/space2hyphen.rb, line 5
def self.convert(argv)
  argv.length == 1 ? argv[0].strip.gsub(/\s/, '-') : argv.join('-')
end
create_new_branch(hyphen_include_sentence) click to toggle source
# File lib/space2hyphen.rb, line 9
def self.create_new_branch(hyphen_include_sentence)
  system "git checkout -b #{hyphen_include_sentence}"
end