How can i Code "Happy Birthday Josh" in ruby -


Can anyone help me with it? I am making a cake and I call the code "Happy Birthday Josh" in Ruby.

Can someone give some ideas? Josh is my brother and is a very curious programmer.

I appreciate it :)

simple, just google "ruby hello Change the Hello world against the World "and Happy Birthday Josh in the examples you will find:

  puts 'Happy Birthday Josh'   

So if you want to do it a little bit fashion, then you can write

  $ ruby ​​-e "puts 'happy birthday josh'"   

This command is a direct call to the shell in ruby ​​or you can call it a square You can wrap the method so that it looks more cool, if you place on a cake; -)

  class wish def self.congratulate_josh puts 'Happy Birthday Josh' End End Privileges_zash    

Comments