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
git config credential.helper 'cache --timeout 28800' |
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 Farm | |
attr_accessor :animals | |
def initialize(&block) | |
@animals = [] | |
block.arity == 1 ? yield(self) : self.instance_eval(&block) | |
end |