Class: Pupcap::LsbRelease
- Inherits:
-
Object
- Object
- Pupcap::LsbRelease
- Defined in:
- lib/pupcap/lsb_release.rb
Instance Method Summary collapse
- #codename ⇒ Object
-
#initialize(cap) ⇒ LsbRelease
constructor
A new instance of LsbRelease.
- #name ⇒ Object
Constructor Details
#initialize(cap) ⇒ LsbRelease
Returns a new instance of LsbRelease.
2 3 4 |
# File 'lib/pupcap/lsb_release.rb', line 2 def initialize(cap) @cap = cap end |
Instance Method Details
#codename ⇒ Object
10 11 12 |
# File 'lib/pupcap/lsb_release.rb', line 10 def codename @release ||= get("c") end |
#name ⇒ Object
6 7 8 |
# File 'lib/pupcap/lsb_release.rb', line 6 def name @name ||= get("i") end |