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

- old
+ new

@@ -1,11 +1,13 @@ require 'space2dot/version' module Space2dot - def self.convert(argv) - argv.length == 1 ? argv[0].strip.gsub(/\s/, '.').insert(0, '.') : argv.join('.').insert(0, '.') - end + class << self + def convert(argv) + argv.length == 1 ? argv[0].strip.gsub(/\s/, '.').insert(0, '.') : argv.join('.').insert(0, '.') + end - def self.copy_command(dot_include_sentence) - "echo #{dot_include_sentence} | ruby -pe 'chomp' | pbcopy" + def copy_command(dot_include_sentence) + "echo #{dot_include_sentence} | ruby -pe 'chomp' | pbcopy" + end end end