What is the best way to learn more complex Ruby OOP constructs?

So, I became quite an experienced Rails developer, and I found that my bottleneck is now a lack of understanding of more complex Ruby constructs. I try to create some plugins and, looking at some complex ones, their OOP magic is Greek to me. (I have never had formal OOP training, so that is part of the problem.)

I want to better understand:

  • Sending methods from one place to another (including extension, etc.)
  • Metaprogramming and overriding methods (super)
  • Inheritance of classes, modules, etc.

Serious ruby ​​toms seem too much. Is there a pragmatic way to study this material that will expand my authority without overwhelming me in the inner workings of the language?

+3
source share
8 answers

This Peepcode pdf plugin templates really answered all my questions; what I was trying to do was write a plugin, so this is the information I need.

+1
source

You can also take prey in some books, for example, Pickaxe: http://whytheluckystiff.net/ruby/pickaxe/

Take a special look at the OOP and metaprogramming sections.

+4
source

- , .

, , .

, , .

+3

, , . . .

+2

, , , , : D

+2

- , hirarchies , , , . .

, :

ruby ​​plus screencasts. , , ,

+1

langauge (, Java #).

, ( - ).

, , , , ,

, , . , , , , - ..

0

Ruby metaprogramming is a good metaprogramming resource.

0
source

Source: https://habr.com/ru/post/1702667/


All Articles