module MrbCast
Overview
Module for specific casts of Crystal values into mruby values
Defined in:
MrbCast.crClass Method Summary
- .cast_to_bool(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
- .cast_to_float(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
- .cast_to_int(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
- .cast_to_string(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
- .interpret_ruby_value(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
- .is_undef?(value : MrbInternal::MrbValue)
- .return_bool(value)
- .return_false
- .return_fixnum(value)
- .return_float(mrb, value)
- .return_nil
- .return_string(mrb, value)
- .return_true
- .return_value(mrb : Pointer(MrbInternal::MrbState), value : Nil)
- .return_value(mrb : Pointer(MrbInternal::MrbState), value : Bool)
- .return_value(mrb : Pointer(MrbInternal::MrbState), value : Int)
- .return_value(mrb : Pointer(MrbInternal::MrbState), value : Float)
- .return_value(mrb : Pointer(MrbInternal::MrbState), value : String)
- .return_value(mrb : Pointer(MrbInternal::MrbState), value : Struct)
- .return_value(mrb : Pointer(MrbInternal::MrbState), value : Object)
Class Method Detail
def self.cast_to_bool(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
#
def self.cast_to_float(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
#
def self.cast_to_int(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
#
def self.cast_to_string(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
#
def self.interpret_ruby_value(mrb : Pointer(MrbInternal::MrbState), value : MrbInternal::MrbValue)
#