Sha256: 17e0280ccdcf6e136bd69b935326575455a61161b3ae2d713dcabe4863feb5f2

Contents?: true

Size: 286 Bytes

Versions: 11

Compression:

Stored size: 286 Bytes

Contents

module PyCall
  class Set
    include PyObjectWrapper

    def initialize(pyobj)
      super(pyobj)
    end

    def length
      LibPython.PySet_Size(__pyobj__)
    end

    def include?(obj)
      1 == LibPython.PySet_Contains(__pyobj__, Conversions.from_ruby(obj))
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pycall-0.1.0.alpha.20170502 lib/pycall/set.rb
pycall-0.1.0.alpha.20170426 lib/pycall/set.rb
pycall-0.1.0.alpha.20170419b lib/pycall/set.rb
pycall-0.1.0.alpha.20170419a lib/pycall/set.rb
pycall-0.1.0.alpha.20170419 lib/pycall/set.rb
pycall-0.1.0.alpha.20170403 lib/pycall/set.rb
pycall-0.1.0.alpha.20170329 lib/pycall/set.rb
pycall-0.1.0.alpha.20170317 lib/pycall/set.rb
pycall-0.1.0.alpha.20170311 lib/pycall/set.rb
pycall-0.1.0.alpha.20170309 lib/pycall/set.rb
pycall-0.1.0.alpha.20170308 lib/pycall/set.rb