Sha256: e7e7facbbe40663d8fa5a6470ceda7b92698897e5eeedcc29be890f3ba33f2e6

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 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}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2hyphen-0.0.2 lib/space2hyphen.rb