Class: Brice::Config::PackageConfig

Inherits:
OpenStruct
  • Object
show all
Includes:
Enumerable
Defined in:
lib/brice/config.rb

Instance Method Summary collapse

Instance Method Details

#eachObject

call-seq:

pkgconfig.each { |entry| ... } -> pkgconfig

Iterates over all entries in pkgconfig. Returns pkgconfig.


170
171
172
173
# File 'lib/brice/config.rb', line 170

def each
  @table.keys.each { |key| yield key.to_s }
  self
end

#empty?Boolean

call-seq:

pkgconfig.empty? -> true | false

Checks whether pkgconfig is empty?

Returns:

  • (Boolean)

179
180
181
# File 'lib/brice/config.rb', line 179

def empty?
  @table.empty?
end