Sha256: c727033a0e8894df44249c235fdef8facf83a352cd68b42c0fd40625848cd482

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

require 'space2underscore/version'

module Space2underscore
  def self.convert_to_underscore(argv)
    space_include_sentence = argv.length == 1 ? argv.first.gsub(/\s/,  '_') : argv.join('_')
    copy_command = "echo #{space_include_sentence} | ruby -pe 'chomp' | pbcopy"
    return space_include_sentence, copy_command
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2underscore-0.0.6 lib/space2underscore.rb