NAME

mRuby::Bool - mruby boolean value.

SYNOPSIS

use mRuby::Bool qw/mrb_true mrb_false mrb_bool/;

mrb_true;    ## true in mruby context.
mrb_false;   ## false in mruby context.
mrb_bool(1); ## true in mruby context.

FUNCTIONS

my $bool = mrb_true() : mRuby::Bool::True

Generate true boolean value in mruby.

my $bool = mrb_false() : mRuby::Bool::False

Generate false boolean value in mruby.

my $bool = mrb_bool($bool) : mRuby::Bool::True|mRuby::Bool::False

Generate true or false boolean value in mruby from $bool.