Class: Cmpi::CMPIArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/cmpi.rb,
ext/cmpi-bindings/cmpi_wrap.c

Overview

Proxy of C Cmpi::CMPIArgs struct

Instance Method Summary collapse

Instance Method Details

#eachObject



427
428
429
430
431
# File 'lib/cmpi.rb', line 427

def each
  0.upto(size-1) do |i|
	yield get_arg_at(i)
  end
end

#to_hashObject



432
433
434
435
436
437
438
# File 'lib/cmpi.rb', line 432

def to_hash
  h = {}
  each do |name,val|
	h[name] = val
  end
  h
end

#to_sObject



439
440
441
442
443
444
445
446
# File 'lib/cmpi.rb', line 439

def to_s
  s = ""
  each do |name,val|
	s << ", " unless s.empty?
	s << "#{name.inspect} => #{val}"
  end
  "{ #{s} }"
end