8000 Add alisases for the start_with? and end_with? methods by robin850 · Pull Request #153 · ruby/ruby · GitHub
[go: up one dir, main page]

Skip to content

Add alisases for the start_with? and end_with? methods #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
* string.c : Add alisases for the start_with? and end_with? methods
  • Loading branch information
robin850 committed Aug 8, 2012
commit 0bb9ced682651d61c7b3be7d3f9954124f16a559
2 changes: 2 additions & 0 deletions string.c
Original file line number Diff line number Diff line change
Expand Up @@ -7931,7 +7931,9 @@ Init_String(void)

rb_define_method(rb_cString, "include?", rb_str_include, 1);
rb_define_method(rb_cString, "start_with?", rb_str_start_with, -1);
rb_define_method(rb_cString, "starts_with?", rb_str_start_with, -1);
rb_define_method(rb_cString, "end_with?", rb_str_end_with, -1);
rb_define_method(rb_cString, "ends_with?", rb_str_end_with, -1);

rb_define_method(rb_cString, "scan", rb_str_scan, 1);

Expand Down
0