Path: | lib/anise.rb |
Last Update: | Sat Feb 23 07:13:29 +0000 2019 |
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