#!/usr/bin/ruby

# Happy birthday to Sidef
# Date: 24th March 2015
# Two years ago, the idea of Sidef was born,
# but it got its actual name only 6 days later,
# on 30th March 2013.

class Singer(name="", age=0) {

    method sing {
        {
            say "Happy birthday #{name}!";
            say "Happy birthday to you...";
        } * 2;
        say "Happy #{age} years old!!!";
    }
}

var s = Singer(name: "Sidef", age: 2);
s.sing;

assert_eq(s.name, "Sidef");
assert_eq(s.age, 2);
