#include <ruby_type.hpp>
Inheritance diagram for Exc_Ruby::Ruby_Type< T >:
Public Types | |
typedef T | CPP_Type |
Public Member Functions | |
Ruby_Type () | |
Ruby_Type (VALUE type) | |
Construct and bind in one step. | |
operator VALUE () const | |
Construct from a Ruby module. | |
operator Value_Holder () const | |
VALUE | type () const |
Explictly return the Ruby type. | |
bool | is_bound () const |
Return true if the object is bound, false otherwise. | |
virtual Ruby_Type & | bind (VALUE type) |
virtual Ruby_Type & | operator= (VALUE type) |
Equivalent to bind(type). |
|
Default constructor. After construction, the Ruby type is Qnil, and the object is not bound. |
|
Bind a Ruby_Type to a VALUE. Raises an exception if the Ruby_Type is already bound or if the VALUE does not represent a valid Ruby class or module. |
|
Construct from a Ruby module. An implicit cast to a VALUE. This is merely for convenience; there are only a few use cases for a Ruby_Type that don't involve the VALUE it is holding. |
|
An implicit cast to a Value_Holder. This is merely for convenience; there are only a few use cases for a Ruby_Type that don't involve the VALUE it is holding. |