lib/space2dot.rb in space2dot-0.0.3 vs lib/space2dot.rb in space2dot-0.1.1

- old
+ new

@@ -1,13 +1,9 @@ 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" + argv.length == 1 ? argv[0].strip.gsub(/\s/, '.') : argv.join('.') end end end