Class: MethodAnnotation::Base
- Inherits:
-
Object
- Object
- MethodAnnotation::Base
- Defined in:
- lib/method_annotation/base.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.after_procs ⇒ Object
Returns the value of attribute after_procs.
-
.annotation_name ⇒ Object
Returns the value of attribute annotation_name.
-
.around_procs ⇒ Object
Returns the value of attribute around_procs.
-
.before_procs ⇒ Object
Returns the value of attribute before_procs.
-
.describe ⇒ Object
Returns the value of attribute describe.
-
.list ⇒ Object
Returns the value of attribute list.
Class Method Summary collapse
Class Attribute Details
.after_procs ⇒ Object
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_name ⇒ Object
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_procs ⇒ Object
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_procs ⇒ Object
Returns the value of attribute before_procs.
4 5 6 |
# File 'lib/method_annotation/base.rb', line 4 def before_procs @before_procs end |
.describe ⇒ Object
Returns the value of attribute describe.
4 5 6 |
# File 'lib/method_annotation/base.rb', line 4 def describe @describe end |
.list ⇒ Object
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 |