Module | MethodSource::MethodExtensions |
In: |
lib/method_source.rb
|
This module is to be included by `Method` and `UnboundMethod` and provides the `source` functionality
Return the comments associated with the method as a string. (This functionality is only supported in Ruby 1.9 and above) @return [String] The method‘s comments as a string @example
Set.instance_method(:clear).comment.display => # Removes all elements and returns self.