Sha256: 21184af568b2ad00a2576be0dedac6bcfaae77297ae683010aaea31ec9298255

Contents?: true

Size: 291 Bytes

Versions: 2

Compression:

Stored size: 291 Bytes

Contents

require 'space2dash/version'

module Space2dash
  class << self
    def convert(argv)
      argv.length == 1 ? argv[0].strip.gsub(/\s/,  '-') : argv.join('-')
    end

    def create_new_branch(dash_include_sentence)
      system "git checkout -b #{dash_include_sentence}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space2dash-0.0.3 lib/space2dash.rb
space2dash-0.0.2 lib/space2dash.rb