Sha256: 7ac5bba322932ec4756955edca756f75559727da975903e18257fe7dd0771127

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

# Annotative Attributes

Create a class that uses the `Annotative::Attributes` mixin.

    class X
      extend Anise::Annotative::Attributes

      attr :a, :count => 1
    end

Then we can see tht the attribute method `:a` has an annotation entry.

    X.ann(:a, :count) #=> 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anise-0.7.0 demo/03_attributes.md