Created
December 24, 2015 22:24
-
-
Save anonymous/cf69c543a069c330d00e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/ruby/ | |
class Test | |
def start(hi, var, rb) | |
@hi = hi | |
@var = var | |
@rb = rb | |
end | |
def final | |
@hi + "" + @var + "" + @rb | |
end | |
end | |
usr = Test.new("Hi","Voja", "and welcome to ruby tutorials!") | |
puts usr.final |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment