Class: Perl::Shell
Constant Summary
Constants included from Common
Common::PERL_EXIT_DESTRUCT_END, Common::PERL_EXIT_EXPECTED
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Shell
constructor
A new instance of Shell.
- #run ⇒ Object
Methods included from Common
#argv_to_ffi, #embedded_argv_to_ffi, #start, #stop
Constructor Details
#initialize ⇒ Shell
Returns a new instance of Shell.
14 15 16 17 18 19 |
# File 'lib/perl/shell.rb', line 14 def initialize Perl.setup @my_perl = Perl.perl_alloc Perl.perl_construct(@my_perl) end |
Class Method Details
.run ⇒ Object
9 10 11 |
# File 'lib/perl/shell.rb', line 9 def run new.run end |
Instance Method Details
#run ⇒ Object
21 22 23 24 25 26 |
# File 'lib/perl/shell.rb', line 21 def run argc, argv = argv_to_ffi Perl.perl_parse(@my_perl, nil, argc, argv, nil) Perl.perl_run(@my_perl) end |