Skip to content

Instantly share code, notes, and snippets.

@pedrolopesme
Created November 11, 2013 21:14
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 pedrolopesme/7420487 to your computer and use it in GitHub Desktop.
Save pedrolopesme/7420487 to your computer and use it in GitHub Desktop.
class Boleto
def initialize(valor, vencimento)
@valor = valor
@vencimento = vencimento
end
def gerar_boleto
gerar_header
gerar_valor
gerar_vencimento
gerar_footer
end
def gerar_header
end
def gerar_valor
puts("Valor:" + @valor )
end
def gerar_vencimento
puts("Vencimento:" + @vencimento )
end
def gerar_footer
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment