{"comment":{"url":"https://api.github.com/repos/EricRicketts/GoodCleanGamesModelsRuby/comments/10009036","html_url":"https://github.com/EricRicketts/GoodCleanGamesModelsRuby/commit/ff20e1e5bd89877a890628cb2b971a6ef5152290#commitcomment-10009036","id":10009036,"user":{"login":"siannopollo","id":5378,"avatar_url":"https://avatars.githubusercontent.com/u/5378?v=3","gravatar_id":"","url":"https://api.github.com/users/siannopollo","html_url":"https://github.com/siannopollo","followers_url":"https://api.github.com/users/siannopollo/followers","following_url":"https://api.github.com/users/siannopollo/following{/other_user}","gists_url":"https://api.github.com/users/siannopollo/gists{/gist_id}","starred_url":"https://api.github.com/users/siannopollo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siannopollo/subscriptions","organizations_url":"https://api.github.com/users/siannopollo/orgs","repos_url":"https://api.github.com/users/siannopollo/repos","events_url":"https://api.github.com/users/siannopollo/events{/privacy}","received_events_url":"https://api.github.com/users/siannopollo/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"ff20e1e5bd89877a890628cb2b971a6ef5152290","created_at":"2015-03-03T15:24:20Z","updated_at":"2015-03-03T15:24:20Z","body":"I've written plenty of inefficient algorithms, so it's not just you.\r\n\r\nWith the `CanastaConstants`, I was thinking more that you just include the `CanastaConstants` module in both the `RunOfCards` class and `RunOfCards::RunHelper`, that way those same methods will be available in both classes.\r\n\r\nMaybe some of the confusion arises from how we were calling `SmallRun`, `LargeRun`, etc, from the `RunOfCards` class. The reason why we can just reference `SmallRun` from the `RunOfCards` class, and not use the fully qualified class name (`RunOfCards::RunHelper`) is because the `SmallRun`, et al, constants are name-spaced inside of `RunOfCards`. If you were to try to just call the `SmallRun` class from a separate class you would get an undefined constant error. Then you would _need_ to use `RunOfCards::RunHelper` to access the class."}}