Py::Mapping

Python mapping classses or types (e.g. built-in dictionary type) automatically include this module.

Included Modules:

Enumerable

Methods:

self[key]

Return the value associated to the key. Return nil if key is not registered in mapping.

self[key] = value

Add binding of key to value.

each {|key, value|...}
each_pair {|key, value|...}

Iterate over each key and value pair.

length
size

Return number of associations.


fukusima@goto.info.waseda.ac.jp