Sha256: 296c6d07fa71b06172e6d8fb47ebb0a20edea69d0ec4e66fda92e3813215dfcc

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

require 'space2dot/version'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2dot-0.0.3 lib/space2dot.rb