Sha256: b815fa947693e61cbe604eb5cc4de9b4ddb345c5e6683c94b52326fa53449e04

Contents?: true

Size: 549 Bytes

Versions: 1

Compression:

Stored size: 549 Bytes

Contents

require 'anise/annotator'
require 'anise/attribute'

# = Anise
#
# Dynamic Annotations system for Ruby.
#
#  class X
#
#    include Anise
#
#    # Provides annotations:
#
#    ann :foo, :class=>String
#
#    # Provides annotators:
#
#    annotator :doc
#    doc "Underdog is here!"
#    def underdog
#      UnderDog.new
#    end
#
#    # Provides annotated attributes:
#
#    attr :bar, Integer, :max => 10
#
#  end
#
module Anise

  def self.append_features(base)
    Attribute.append_features(base)
    Annotator.append_features(base)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anise-0.2.0 lib/anise.rb