Class: PyCall::Conversions::TypePair

Inherits:
Struct
  • Object
show all
Defined in:
lib/pycall/conversion.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pytypeObject

Returns the value of attribute pytype

Returns:

  • (Object)

    the current value of pytype



5
6
7
# File 'lib/pycall/conversion.rb', line 5

def pytype
  @pytype
end

#rbtypeObject

Returns the value of attribute rbtype

Returns:

  • (Object)

    the current value of rbtype



5
6
7
# File 'lib/pycall/conversion.rb', line 5

def rbtype
  @rbtype
end

Instance Method Details

#to_aObject



6
7
8
# File 'lib/pycall/conversion.rb', line 6

def to_a
  [pytype, rbtype]
end