Skip to content

Document rb_get_kwargs#23

Open
FnControlOption wants to merge 1 commit into
silverhammermba:gh-pagesfrom
FnCtrlOption:kwargs
Open

Document rb_get_kwargs#23
FnControlOption wants to merge 1 commit into
silverhammermba:gh-pagesfrom
FnCtrlOption:kwargs

Conversation

@FnControlOption

Copy link
Copy Markdown

rb_get_kwargs is useful with rb_scan_args

@FnControlOption

Copy link
Copy Markdown
Author

https://github.com/ruby/ruby/blob/cb4e2cb55a59833fc4f1f6db2f3082d1ffcafc80/include/ruby/internal/eval.h#L340-L342

 * @warning     Handling keyword arguments in the  C API is less efficient than
 *              handling them  in Ruby.  Consider  using a Ruby  wrapper method
 *              around a non-keyword C function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant