Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Flyable
- def fly
- 'I can touch the sky!'
- end
- end
- class Animal
- end
- class Bird < Animal
- include Flyable
- end
- class Mammal < Animal
- end
- class Dog < Mammal
- end
- class Bat < Mammal
- include Flyable
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement