Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/vbox/cli.rb

Overview

Instance Method Summary collapse

Instance Method Details

#naturalizedObject



8
9
10
# File 'lib/vbox/cli.rb', line 8

def naturalized
  scan(/[^\d]+|\d+/).collect { |f| f.match(/\d+/) ? f.to_i : f }
end