egor.homakov (egor homakov)
- Login: egor.homakov
- Email: hom.akov@gmail.com
- Registered on: 05/29/2012
- Last sign in: 05/30/2012
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
05/30/2012
-
08:24 PM Ruby Feature #6513: Make method_missing to lookup in constants too
- @sorah it's probably the best possible example - I met it a while ago in nokogiri and was confused to see "def XML". dirty.Nokogiri.XML.new("<foo />").class - neat
@matz every "new" thing confuses until user learns how it works now. I... -
04:21 AM Ruby Feature #6513: Make method_missing to lookup in constants too
- @nobu
>Why do you think so?
any example of method in popular libraries or anything with first capital letter? Why to support what is not needed and messes lookup process?(example above)
> ...
Are you sure, why?
by 'awesome' I mea...
05/29/2012
-
10:37 PM Ruby Feature #6513: Make method_missing to lookup in constants too
- First letter of constant is always a capital letter(in Ruby).
if you define method:
def Hi
1
end
You're not able to use it w/o ():
Hi
it looks up for constant and raises error. only:
Hi() or send(:Hi)
None of code style ... -
10:37 PM Ruby Feature #6513 (Rejected): Make method_missing to lookup in constants too
- =begin
First letter of constant is always a capital letter(in Ruby).
if you define method:
def Hi
1
end
You're not able to use it w/o ():
Hi
it looks up for constant and raises error. only:
Hi() or send(:Hi)
N...