Sha256: 48f009ab394a5226bce33ac2a9a6a0a1aaaeede03fe7a89c6f94758f1c2fe131

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 Bytes

Contents

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.3 lib/space2hyphen.rb