Skip to content

Instantly share code, notes, and snippets.

@prodis
Created Jul 18, 2011
Embed
What would you like to do?
Ruby Fundamental - O início de um novo blog
class Saudacao
def initialize(name)
@name = name
end
def saudar
"Bem vindo, #{@name}!"
end
end
s = Saudacao.new "Ruby Fundamental"
puts s.saudar # => Bem vindo, Ruby Fundamental!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment