Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Created December 24, 2015 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/cf69c543a069c330d00e to your computer and use it in GitHub Desktop.
Save anonymous/cf69c543a069c330d00e to your computer and use it in GitHub Desktop.
#! /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