Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ruby's Object Model: Metaprogramming and other Magic

24,761 views

Published on

My talk from Winnipeg.rb 2010-10

Published in: Technology
  • Dating for everyone is here: ❶❶❶ http://bit.ly/36cXjBY ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ❶❶❶ http://bit.ly/36cXjBY ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • There are some interesting corrections in the thread on reddit: http://www.reddit.com/r/ruby/comments/e0g1s/a_look_into_rubys_object_model/c14d0xq
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • @Alexandr It made more sense when I was explaining this in person, but I was trying to contrast two different methods that ruby _could_ have used to implement modules. I sort of explained some of the consequences of copying a module at include time, and why that's a bad idea. Slide 44 explains the other possible method, and the way ruby actually does it.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • hm... not supports formatting


    module M;def m()puts '1';end;end;
    class C;include M;end;
    module M;def m()puts '2';end;end;
    puts C.new.m
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

×