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
| version: '3' | |
| services: | |
| postgres: | |
| image: postgres:10.1-alpine | |
| volumes: | |
| - ./data:/var/lib/postgresql/data | |
| ports: | |
| - '5432:5432' | |
| restart: always | |
| mysql: |
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
| FROM ruby:2.4.0 | |
| # Installing NodeJS for some Ruby gems needed by Rails | |
| RUN apt-get update && apt-get install -y nodejs | |
| ENV APP /app | |
| RUN mkdir $APP | |
| WORKDIR $APP |
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 Monster: | |
| agility = 20 | |
| def __init__(self, health, defense): # => Constructor | |
| self.health = health | |
| self.defense = defense | |
| def say(self): # => Instance Method | |
| print('Rawr') |