Before getting started with modules and mixins, lets first find out the need of module & mixins in OOP. In object oriented programming languages multiple inheritance is basic paradigm (child class extends behavior of base class). C++ supports multiple inheritance. Java does support same using interfaces. In ruby language, multiple inheritance is achieved very easily … Continue reading Modules and mixins in ruby
Category: Ruby
alias methods in ruby
Alias method in rubyRuby classes provides a alias_method that can be used to reuse the existing methods.Consider a situation where you need different methods which has same code and ONLY they have different names.In this case alias_method uses suits best choice instead duplicating same code orwriting common method that will get used in all methods, … Continue reading alias methods in ruby
ruby on rails installation on fresh ubuntu machine
Ruby On Rails Installation on fresh ubuntu machineInstallation steps are applicable to ubuntu versions interpid, karmic koala.Make necessary changes according to package manager provided by other linux operating systems in order install ruby and rails.Before getting started to installations make sure to build essential packageson fresh ubutnu machine. Ubuntu machine has built in apt-get package … Continue reading ruby on rails installation on fresh ubuntu machine
