Module: Evoke::Comment
- Included in:
- Task
- Defined in:
- lib/evoke/comment.rb
Overview
Extendable module for extracting multi-line comments for a class at runtime.
Instance Method Summary collapse
-
#class_comment ⇒ String
Extracts the comment prefixing a class.
Instance Method Details
#class_comment ⇒ String
Note:
At least one non-inherited method needs to be present in the class.
Extracts the comment prefixing a class.
22 23 24 |
# File 'lib/evoke/comment.rb', line 22 def class_comment @class_comment ||= defined_methods.empty? ? '' : extract_class_comment end |