Sha256: 0a78aad5070e3a92eb2829cd33081d5ffed45847e73f6f505c1e6dbe112ea705

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

require 'space2underscore/version'

module Space2underscore
  def self.convert(argv)
    argv.length == 1 ? argv[0].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

2 entries across 2 versions & 1 rubygems

Version Path
space2underscore-0.0.9 lib/space2underscore.rb
space2underscore-0.0.8 lib/space2underscore.rb