Sha256: 9f465e411ec713e46088095382493a5e71781c52a9cb005fbc98102d5465d4eb

Contents?: true

Size: 317 Bytes

Versions: 1

Compression:

Stored size: 317 Bytes

Contents

require "space2underscore/version"

module Space2underscore
  def self.convert_to_underscore(argv)
    if argv
      space_include = argv.gsub(/\s/, '_')
      copy_command = `echo #{space_include} | pbcopy`
      return space_include, copy_command
    else
      raise "Error! Please enter string"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
space2underscore-0.0.2 lib/space2underscore.rb