Sha256: 7d109c4cc2e9a2188a1d29eb783e91ac823b40d971ec31b98a2e502db80a9260

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

require 'space2underscore/version'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2underscore-0.1.1 lib/space2underscore.rb