[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FR-devel] alias of a couple of methods
From: |
Rich Kilmer |
Subject: |
[FR-devel] alias of a couple of methods |
Date: |
Fri, 13 Sep 2002 00:33:27 -0400 |
I aliased these methods:
slot.data => slot.value
slot.call(...) => slot.invoke(...)
Of course the old methods still work. I did this because I think that
in some code .value would be clearer than .data and the same with .call
and .invoke. To learn from Ruby itself, aliases are not bad to have if
it makes code clearer.
-rich
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [FR-devel] alias of a couple of methods,
Rich Kilmer <=