Skip to content

Commit 054aff9

Browse files
committed
Add documentation for Engine::Base#decorated_methods_for
1 parent c8d12f3 commit 054aff9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/contracts/engine/base.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def all_decorators
5757
pop_decorators + eigenclass_engine.all_decorators
5858
end
5959

60+
# Fetches decorators of specified type for method with name
61+
#
62+
# @param [Or[:class_methods, :instance_methods]] type - method type
63+
# @param [Symbol] name - method name
64+
# @return [ArrayOf[Decorator]]
6065
def decorated_methods_for(type, name)
6166
Array(decorated_methods[type][name])
6267
end

0 commit comments

Comments
 (0)