Method: Fog::Compute::Libvirt::Volume#split_size_unit
- Defined in:
- lib/fog/libvirt/models/compute/volume.rb
#split_size_unit(text) ⇒ Object
84 85 86 87 88 89 |
# File 'lib/fog/libvirt/models/compute/volume.rb', line 84 def split_size_unit(text) matcher=text.match(/(\d+)(.+)/) size=matcher[1] unit=matcher[2] return size , unit end |