module Anyolite::RbCast
Overview
Module for specific casts of Crystal values into mruby values
Defined in:
RbCast.crClass Method Summary
- .cast_to_bool(rb : Pointer(RbCore::State), value : RbCore::RbValue)
- .cast_to_char(rb : Pointer(RbCore::State), value : RbCore::RbValue)
- .cast_to_float(rb : Pointer(RbCore::State), value : RbCore::RbValue)
- .cast_to_int(rb : Pointer(RbCore::State), value : RbCore::RbValue)
- .cast_to_nil(rb : Pointer(RbCore::State), value : RbCore::RbValue)
-
.cast_to_string(rb : Pointer(RbCore::State), value : RbCore::RbValue)
TODO Maybe add an option for implicit casts?
- .casting_error(rb : Pointer(RbCore::State), value, crystal_class, rescue_value)
- .check_for_array(value : RbCore::RbValue)
- .check_for_bool(value : RbCore::RbValue)
- .check_for_data(value : RbCore::RbValue)
- .check_for_false(value : RbCore::RbValue)
- .check_for_fixnum(value : RbCore::RbValue)
- .check_for_float(value : RbCore::RbValue)
- .check_for_hash(value : RbCore::RbValue)
- .check_for_nil(value : RbCore::RbValue)
- .check_for_string(value : RbCore::RbValue)
- .check_for_symbol(value : RbCore::RbValue)
- .check_for_true(value : RbCore::RbValue)
- .check_for_undef(value : RbCore::RbValue)
- .convert_to_unsafe_rb_value(rb : Pointer(RbCore::State), value)
- .is_undef?(value)
- .return_array(rb : Pointer(RbCore::State), value)
- .return_bool(value)
- .return_false
- .return_fixnum(value)
- .return_float(rb : Pointer(RbCore::State), value)
- .return_hash(rb : Pointer(RbCore::State), value)
- .return_nil
- .return_object(rb : Pointer(RbCore::State), value : Object)
- .return_regex(rb : Pointer(RbCore::State), value)
- .return_string(rb : Pointer(RbCore::State), value)
- .return_struct_or_enum(rb : Pointer(RbCore::State), value : Struct | Enum)
- .return_symbol(rb : Pointer(RbCore::State), value)
- .return_true
- .return_value(rb : Pointer(RbCore::State), value : Object)
Macro Summary
Class Method Detail
def self.cast_to_string(rb : Pointer(RbCore::State), value : RbCore::RbValue)
#
TODO Maybe add an option for implicit casts?
def self.casting_error(rb : Pointer(RbCore::State), value, crystal_class, rescue_value)
#