Sha256: 85862beec1c77bb7c501778b0b8931441948be0eba8700f60f5e6583166d261e
Contents?: true
Size: 446 Bytes
Versions: 37
Compression:
Stored size: 446 Bytes
Contents
namespace Rice { template<typename T> inline Object Struct::Instance:: operator[](T index) { return rb_struct_aref(value(), ULONG2NUM(index)); } template<> inline Object Struct::Instance:: operator[]<Identifier>(Identifier member) { size_t index = type_.offset_of(member); return (*this)[index]; } template<> inline Object Struct::Instance:: operator[]<char const *>(char const * name) { return (*this)[Identifier(name)]; } } // Rice
Version data entries
37 entries across 37 versions & 6 rubygems