Les commentaires en Ruby

Les commentaires sur une simple ligne :

# def ma_methode(p1)
        # puts p1.inspect
# end

Les commentaires sur plusieurs lignes :

=begin
def ma_methode(p1, p2 = 3)
        puts p2.inspect
end
=end

 


18 juillet 2015 - Wakonda - Ruby

Rechercher

Tags

Publicité

Suivez-nous

Aidez-nous !


Loading…
Loading the web debug toolbar…
Attempt #