Title / Description
Code # classe pedido class Pedido # com atributo status attr_accessor :status # metodo que modifica o status do pedido def mudar_status novo_status @status = novo_status puts "Novo Status: #{@status}" end end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code