Skip to content

Commit

Permalink
new document
Browse files Browse the repository at this point in the history
  • Loading branch information
shelling committed Oct 4, 2009
1 parent 98a9a7f commit 06b3ca7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Rubyish/Attribute.pm
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ our $VERSION = "1.1";
use Rubyish::Attribute;
# import attr_accessor, attr_writer and attr_reader
attr_accessor "name", "color", "type";
BEGIN {
attr_accessor "name", "color", "type";
}
# pass a list as the only one parameter
# invoke it in compile time to avoid using parenthesis when using instance variable as below
# then create a constructer based on hashref
sub new {
Expand Down

0 comments on commit 06b3ca7

Please sign in to comment.