The Construction of an Explorer

Ruby Syntax | June 24, 2010

In ruby I can do this.
first_name = Phanousit
last_name = Syhakhom
full_name = first_name+ ‘ ‘+lastname     #or
full_name = first_name + ‘ ‘ + lastname  # notice the spaces between the variable and +?
Both will produce the same result.
Ruby itself is a dynamically type language.  Which means the variable does not need to be set anywhere.  You can call it whenever you like and it will be that variable.
Advertisement

Follow

Get every new post delivered to your Inbox.