Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds documentation for observable_attributes
- Loading branch information
Showing
2 changed files
with
21 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 file contains 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
d618e62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your git commits are slacking! "Document observable_attributes", or should this file be renamed "has_attributes" or the method "observe_attributes"? Seems there may be a name clash here.
d618e62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure I checked this in at 3:30am (cut me some slack) ;) also I like the way
include ObservableAttributes
reads. The object will have observable attributes once this is included. just my $0.02I am accepting pull requests ;)
d618e62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So does the code look like?
There's nothing linking one to the other, especially if there's code in between the
include
and thehas_attributes
. I would probably rename this to simplyobservable_attributes :x, :y
then it's very obvious.d618e62
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The end user of Gamebox does not use the Actor class in that way.
Gamebox sets up Actor:
The consumer of Gamebox just uses
has_attributes
from the Gamebox DSL.