Sha256: 7976ae171692b6494656fd0d704a4f8f3ca0655716b3504abbab99a2d7d4168e

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

require 'space2underscore/version'

module Space2underscore
  def self.convert(argv)
    argv.length == 1 ? argv.first.gsub(/\s/,  '_') : argv.join('_')
  end

  def self.copy_command(space_include_sentence)
    "echo #{space_include_sentence} | ruby -pe 'chomp' | pbcopy"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2underscore-0.0.7 lib/space2underscore.rb