class Hwloc::BoolStruct

Attributes

topology[R]

Public Instance Methods

each() { |m, (self ==1)| ... } click to toggle source
# File lib/hwloc/Obj.rb, line 106
def each
  if block_given? then
    members.each { |m|
      yield m, (self[m] ==1)
    }
  else
    to_enum(:each)
  end
end
method_missing(m, *args, &block) click to toggle source
Calls superclass method
# File lib/hwloc/Obj.rb, line 98
def method_missing(m, *args, &block)
  begin
    return self[m] == 1
  rescue
    super
  end
end