Sha256: 1b0bf3b48f5fa69085bd7f8f2136679762c41cbda2307f0381378a38730f0747

Contents?: true

Size: 307 Bytes

Versions: 21

Compression:

Stored size: 307 Bytes

Contents

module PyCall
  class Set
    include PyObjectWrapper

    def initialize(pyobj)
      super(pyobj)
    end

    def size
      LibPython.PySet_Size(__pyobj__)
    end

    alias length size

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pycall-1.5.1 lib/pycall/set.rb
pycall-1.5.0 lib/pycall/set.rb
pycall-1.4.2 lib/pycall/set.rb
pycall-1.4.1 lib/pycall/set.rb
pycall-1.4.0 lib/pycall/set.rb
pycall-1.3.1 lib/pycall/set.rb
pycall-1.3.0 lib/pycall/set.rb
pycall-1.3.0.dev lib/pycall/set.rb
pycall-1.2.1 lib/pycall/set.rb
pycall-1.2.0 lib/pycall/set.rb
pycall-1.2.0.beta1 lib/pycall/set.rb
pycall-1.1.0.rc1 lib/pycall/set.rb
pycall-1.0.3 lib/pycall/set.rb
pycall-1.0.2-x86-mingw32 lib/pycall/set.rb
pycall-1.0.2-x64-mingw32 lib/pycall/set.rb
pycall-1.0.2 lib/pycall/set.rb
pycall-1.0.1-x86-mingw32 lib/pycall/set.rb
pycall-1.0.1-x64-mingw32 lib/pycall/set.rb
pycall-1.0.1 lib/pycall/set.rb
pycall-1.0.0 lib/pycall/set.rb