See an example...

      class Song

        # Annotations

        extend Anise::Annotations

        ann :@id, :valid => lambda{ |v| RE_ID =~ v }


        # Annotated Attributes

        extend Anise::Annotative::Attributes

        attr :title,  String, :size => 50
        attr :artist, String, :default => "Unknown"
        attr :length, Integer


        # Method Annotators

        extend Anise::Annotative::Methods

        annotator :img

        img "right-arrow.jpg"
        def play
          JukeBox.play(self)
        end

      end