module Space2dash

Constants

VERSION

Public Class Methods

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