Sha256: e892936e152e3baa7f36f30200f6ac9c10b1507cfd910b1e382ff9b71117383a

Contents?: true

Size: 315 Bytes

Versions: 2

Compression:

Stored size: 315 Bytes

Contents

require 'space2underscore/version'

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space2underscore-0.3.2 lib/space2underscore.rb
space2underscore-0.3.1 lib/space2underscore.rb