DEV Community

Cover image for Ruby has no class methods

Ruby has no class methods

Edison Yap on November 09, 2018

Wait…. Whaaaaaaaaaaaaaaaaaaat? I don’t know about you, but that was my exact reaction when I first heard Nadia Odunayo’s talk in RubyC...
Collapse
 
yorodm profile image
Yoandy Rodriguez Martinez

So, you've effectively proven that.

  1. Ruby does have class methods, cause you know, metaclasses are not the same thing as classes.
  2. Metaclasses are cool (which it's known since Smalltalk times).
  3. MOP rules!
Collapse
 
edisonywh profile image
Edison Yap

Haha yeah, I admit the title is a bit clickbaity :p but it's more so that for my own personal understanding, class method wasn't what I thought it was.

Yeah in Nadia's talk she talked briefly about Smalltalk too! There's just so much more to learn, it's exciting!

Can explain what MOP is?

Collapse
 
yorodm profile image
Yoandy Rodriguez Martinez

Meta Object Protocol, oh man you're in for a treat!!!! Check this book

Thread Thread
 
gosukiwi_20 profile image
Federico Ramirez

Interesting, I was playing with writing an OO programming language in Common Lisp, looks like this might be a good architecture for the object system.

Collapse
 
chenge profile image
chenge

Good to learn, thanks. Where can we watch the video you said?

Collapse
 
edisonywh profile image
Edison Yap • Edited

Hey! I attended the RubyConf live, and I don't think they recorded anything, so frankly I'm not quite sure if a video exists.

Maybe you could start by looking at Nadia's Twitter or something?

EDIT: Hey man I took some time to dig and found it! nadiaodunayo.com/speaking/the-case...

Collapse
 
chenge profile image
chenge

I found it, thank you. Nice video.

nadiaodunayo.com/speaking/the-case...

Collapse
 
rhymes profile image
rhymes

Great explanation Edison!

Collapse
 
edisonywh profile image
Edison Yap

Thanks! Means a lot to someone who's pretty new to this blogging thing haha

Collapse
 
lucasprag profile image
lucasprag

haha I found this post very interesting. Great work!