R
R
Robert2014-07-04 01:33:45
Ruby on Rails
Robert, 2014-07-04 01:33:45

What is the difference between gems in Ruby and regular libraries in other languages?

I have only recently begun studying this language and the technologies associated with it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2014-07-04
@Jowan

Due to all sorts of magic things like ObjectSpace, introspection and the ability to change the behavior of any object right at runtime, you have the opportunity to write a gem that will change the behavior of some components as you need. That is, you can do anything (in theory) by simply putting the right gems.
ps I'm not familiar with ruby ​​myself, so I can't say exactly how it all works. I know only approximately. But @CrusaderGo said it right - there is magic all around.

I
Ilya Lazarev, 2014-07-04
@CrusaderGo

The presence of magic

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question