Last active
December 11, 2015 07:18
-
-
Save 100lp/4564829 to your computer and use it in GitHub Desktop.
# задание: сделайте класс нигер с двумя методами, один будет возвращать "whazzup", а второй будет вызывать первый и к его результату добавлять ", sir"
This file contains 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 Nigga | |
def whazzup | |
@whazzup = "whazzup" | |
end | |
def sir | |
puts "#{@whazzup} sir" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment