Featured
-
Installing RVM and Creation of Gemsets Part 2
In the last tutorial we learnt how to install RVM.
by dinesh.singh -
Installing RVM and Creating of Gemsets Part 1
Installing RVM and creating Gemsets can be difficu
by dinesh.singh -
Use pik in Windows
Managing multiple versions of Ruby on Windows can
by anirudh.rautela -
Using Bundler in Rails 2.3.x app
Managing Gems in Rails can be infuriating at times
by anirudh.rautela
Tags
Importance of Modules
Module is one of the most important tool in the Ruby toolbox. They are generally used to namespace ruby classes.
module Test
class Hello
end
end
The class Hello will be wrapped in the Test namespace which means that if we want to c...
Modules
One of the most powerful feature in ruby is module. Modules are like classes but can not instantiated. Module is used for two purpose:
1. namespacing
2. mixin
Namespacing
A class per can be wrapped inside a module to...
what is actually module and mixin is?
Modules are similar to classes basically every class object is ancestrally a module object.When you create a class you can create instance of that class through which you can execute class's method but this is not possible in modules as it do...