Class: MethodAnnotation::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/method_annotation/base.rb

Direct Known Subclasses

Async, Cache, Lazy, Trace, WillImplemented

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.after_procsObject

Returns the value of attribute after_procs.



4
5
6
# File 'lib/method_annotation/base.rb', line 4

def after_procs
  @after_procs
end

.annotation_nameObject

Returns the value of attribute annotation_name.



4
5
6
# File 'lib/method_annotation/base.rb', line 4

def annotation_name
  @annotation_name
end

.around_procsObject

Returns the value of attribute around_procs.



4
5
6
# File 'lib/method_annotation/base.rb', line 4

def around_procs
  @around_procs
end

.before_procsObject

Returns the value of attribute before_procs.



4
5
6
# File 'lib/method_annotation/base.rb', line 4

def before_procs
  @before_procs
end

.describeObject

Returns the value of attribute describe.



4
5
6
# File 'lib/method_annotation/base.rb', line 4

def describe
  @describe
end

.listObject

Returns the value of attribute list.



4
5
6
# File 'lib/method_annotation/base.rb', line 4

def list
  @list
end

Class Method Details

.after(&block) ⇒ Object



10
11
12
# File 'lib/method_annotation/base.rb', line 10

def after(&block)
  (@after_procs ||= []) << block
end

.around(&block) ⇒ Object



14
15
16
# File 'lib/method_annotation/base.rb', line 14

def around(&block)
  (@around_procs ||= []) << block
end

.before(&block) ⇒ Object



6
7
8
# File 'lib/method_annotation/base.rb', line 6

def before(&block)
  (@before_procs ||= []) << block
end