Sha256: edc331c28d5eef8b3917151a96bc9ce712dfe96ce9106d9232e8192f662ea2db
Contents?: true
Size: 405 Bytes
Versions: 1
Compression:
Stored size: 405 Bytes
Contents
= TOPLEVEL Annotated Attributes Including `AnnotatedAttributes` at the toplevel, i.e. Object, will make annotated attributes univerally available. class ::Object extend Anise::Annotative::Attributes end Create a class that uses it. class X attr :a, :count=>1 end X.ann(:a, :count) #=> 1 Alternatively the `Annotative::Attributes` module could be included into the `Module` class.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
anise-0.7.0 | demo/toplevel/03_attributes.md |