lib/space2dot.rb in space2dot-0.1.2 vs lib/space2dot.rb in space2dot-0.1.3

- old
+ new

@@ -1,7 +1,14 @@ +# coding: utf-8 + require 'space2dot/version' +# This is the main functions. module Space2dot def self.convert(argv) - argv.length == 1 ? argv[0].strip.gsub(/\s/, '.').insert(0, '.') : argv.join('.').insert(0, '.') + if argv.length == 1 + argv[0].strip.gsub(/\s/, '.').insert(0, '.') + else + argv.join('.') + end.insert(0, '.') end end