Module: LVM::Volumes
- Included in:
- LogicalVolumes, PhysicalVolumes, VolumeGroups
- Defined in:
- lib/lvm/volumes.rb
Instance Method Summary collapse
Instance Method Details
#[](name) ⇒ Object
3 4 5 6 |
# File 'lib/lvm/volumes.rb', line 3 def [](name) each { |o| return o if o.name == name } nil end |
#to_s ⇒ Object
8 9 10 11 12 |
# File 'lib/lvm/volumes.rb', line 8 def to_s x = [] each { |o| x << o.name } x.join(" ") end |