Question: can any body tell me how can i install the FFMPEG, MENCODER to my VPS server. i have WHM and cPanel.

any help about this will be appreciated.

thanks

Answer: 
there are few gems that provide this feature to your ruby code

1. [functional-ruby](https://github.com/jdantonio/functional-ruby)

```

       defn(:greet, :male) {
         puts "Hello, sir!"
       }

       defn(:greet, :female) {
         puts "Hello, ma'am!"
       }

       foo.greet(:male)   => "Hello, sir!"
       foo.greet(:female) => "Hello, ma'am!"

```

you can find more Elixir like pattern matching features from [here](http://jerrydantonio.com/functional-ruby/Functional/PatternMatching.html) 

2. [contracts.ruby](https://github.com/egonSchiele/contracts.ruby)

```

       Contract 1 => 1
       def fact x
         x
       end

       Contract C::Num => C::Num
       def fact x
        x * fact(x - 1)
       end

```

this gem helps to right beautiful defensive code. there are some criticisms about performance. so benchmark and decide. [more examples](https://egonschiele.github.io/contracts.ruby/#method-overloading)
The defining characteristic of overloading is that dispatch happens statically. In Ruby, dispatch *always* happens dynamically, there is no other way. Therefore, overloading is not possible in Ruby.