Project

General

Profile

Actions

Misc #10755

open

Use rb_define_alias instead of rb_define_method for rb_cHash

Added by gogotanaka (Kazuki Tanaka) over 6 years ago. Updated over 6 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
[ruby-core:67668]

Description

Hi, there.

The main reason for using rb_define_alias is generating more prefer Document and making code more readable.

Is there any reason rb_define_method is prefered to rb_define_alias?
If so, please let me know :)
If not so, I'm gonna do same thing for other part of code.

I've sorted some methods in terms of rb_define_alias being very after original.


Files

using_rb_define_method_for_rbHash.patch (3.19 KB) using_rb_define_method_for_rbHash.patch gogotanaka (Kazuki Tanaka), 01/18/2015 03:09 AM
Actions

Also available in: Atom PDF