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
| //This is model setup, the important stuff is at the bottom. | |
| enum ClothingColor { | |
| case red, green, blue, purple, silver | |
| } | |
| enum ClothingPattern { | |
| case solid, polkadots, checks, herringbone | |
| } |
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 Node | |
| attr_accessor :node, :next | |
| def initialize(node) | |
| @node = node | |
| end | |
| end | |
| #### | |
| # add - inserts the specified element at the specified position, returns true on success |