Sha256: a0fda2946bee34e23a86b428dae04f40d70b452d025cfcaadf67cba836294f0e

Contents?: true

Size: 339 Bytes

Versions: 1

Compression:

Stored size: 339 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)
      if system "git checkout -b #{dash_include_sentence}"
        "Branch has been created."
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2dash-0.0.1 lib/space2dash.rb