Module Anise
In: lib/anise.rb
lib/anise/annotative/methods.rb
lib/anise/annotative/variables.rb
lib/anise/annotative/attributes.rb
lib/anise/annotations/store.rb
lib/anise/annotative.rb
lib/anise/version.rb
lib/anise/annotations.rb

Dynamic Annotations for Ruby.

  require 'anise'

Provides annotations:

  class X
    extend Anise::Annotations

    ann :foo, :class=>String
  end

Provides method annotations:

  class Y
    extend Anise::Annotator::Method

    def self.doc(string)
      method_annotation(:doc=>string)
    end

    doc "foo is cool"
    def foo
      # ...
    end
  end

Provides annotated attributes:

  class Z
    extend Anise::Annotator::Attribute

    attr :bar, Integer, :max=>10
  end

Methods

Classes and Modules

Module Anise::Annotations
Module Anise::Annotative

Public Class methods

[Validate]