class PyBind::PySet

Public Class Methods

new(init) click to toggle source
Calls superclass method PyBind::PyObjectWrapper::new
# File lib/pybind/types/set.rb, line 6
def initialize(init)
  super
end

Public Instance Methods

include?(obj) click to toggle source
# File lib/pybind/types/set.rb, line 14
def include?(obj)
  obj = obj.to_python
  LibPython.PySet_Contains(@pystruct, obj) == 1
end
size() click to toggle source
# File lib/pybind/types/set.rb, line 10
def size
  LibPython.PySet_Size(@pystruct)
end