Class: Vagrant::Hivemind::Util::Args

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant/hivemind/util.rb

Class Method Summary collapse

Class Method Details

.from_csv(csv) ⇒ Object



40
41
42
43
44
# File 'lib/vagrant/hivemind/util.rb', line 40

def self.from_csv(csv)
  return nil unless csv
  tokens = csv.delete(" ").split(",").select do |token| !token.empty? end
  tokens.empty? ? nil : tokens
end