Sha256: b50a096009428b6cbddc90404d0ef7f5986ed320a09e00ddcc755569cccd1fd1

Contents?: true

Size: 256 Bytes

Versions: 1

Compression:

Stored size: 256 Bytes

Contents

# coding: utf-8

require 'space2dot/version'

# This is the main functions.
module Space2dot
  def self.convert(argv)
    if argv.length == 1
      argv[0].strip.gsub(/\s/, '.').insert(0, '.')
    else
      argv.join('.')
    end.insert(0, '.')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2dot-0.1.3 lib/space2dot.rb