9 binding = rb_binding_new();
12const char *pry_ruby_version()
14 return ruby_description;
17char *pry_eval(const char *code)
22 result = rb_eval_string_wrap(code, &state);
26 VALUE exception = rb_errinfo();
29 rb_warn("%" PRIsVALUE "", rb_funcall(exception, rb_intern("full_message"), 0));
34 VALUE str = rb_sprintf("%" PRIsVALUE "", result);
35 return StringValueCStr(str);
39void pry_eval_file(const char *file)
41 char *options[] = {"ruby", file};
42 void *node = ruby_options(2, options);
45 if (ruby_executable_node(node, &state))
47 state = ruby_exec_node(node);
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list