Class: Pupcap::LsbRelease

Inherits:
Object
  • Object
show all
Defined in:
lib/pupcap/lsb_release.rb

Instance Method Summary collapse

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

#codenameObject



10
11
12
# File 'lib/pupcap/lsb_release.rb', line 10

def codename
  @release ||= get("c")
end

#nameObject



6
7
8
# File 'lib/pupcap/lsb_release.rb', line 6

def name
  @name ||= get("i")
end