Created
July 16, 2014 09:16
-
-
Save poppen/aa15b44b99661af0277f to your computer and use it in GitHub Desktop.
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 Person | |
def has_holiday_in?(year, month) | |
calendar = new Calendar(year, month) | |
calendar.has_holiday? ? true : false | |
end | |
end | |
class Person | |
def has_holiday_in?(calendar) | |
calendar.has_holiday? ? true : false | |
end | |
end | |
class Person | |
def initialize(calendar) | |
@calendar = calendar | |
end | |
def has_holiday? | |
@calendar.has_holiday? ? true : false | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment