This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Zyd | |
| def wlosy=(hair) | |
| @hair = hair | |
| end | |
| def pazernosc=(greed) | |
| @greed = greed | |
| end | |
| def wlosy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Zyd | |
| def wlosy(hair) | |
| @hair = hair | |
| end | |
| def pazernosc(greed) | |
| @greed = greed | |
| end | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def prompt | |
| print ">> " | |
| end | |
| puts "Od ilu zaczynamy?" | |
| prompt | |
| i = STDIN.gets() | |
| puts "i.class => #{i.class}" | |
| numbers = [] |