Method: Anise::Annotative::Methods#method_annotation

Defined in:
lib/anise/annotative/methods.rb

#method_annotation(*args, &block) ⇒ Object

Setup a pending method annotation.

Parameters:

  • annotations (Hash)

    The annotation settings.


94
95
96
97
# File 'lib/anise/annotative/methods.rb', line 94

def method_annotation(*args, &block)
  anns = (Hash === args.last ? args.pop : {})
  Methods.pending_annotations[self] << [anns, block]
end