mRuby::Bool - mruby boolean value.
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.
my $bool = mrb_true() : mRuby::Bool::True
Generate true boolean value in mruby.
true
my $bool = mrb_false() : mRuby::Bool::False
Generate false boolean value in mruby.
false
my $bool = mrb_bool($bool) : mRuby::Bool::True|mRuby::Bool::False
Generate true or false boolean value in mruby from $bool.
$bool
To install mRuby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mRuby
CPAN shell
perl -MCPAN -e shell install mRuby
For more information on module installation, please visit the detailed CPAN module installation guide.