README.markdown in method_source-1.0.0 vs README.markdown in method_source-1.1.0
- old
+ new
@@ -48,9 +48,17 @@
Set.instance_method(:merge).comment.display
# =>
# Merges the elements of the given enumerable object to the set and
# returns self.
+Example: display module/class comments
+--------------------------------------
+
+ MethodSource::MethodExtensions.method(:included).module_comment
+ # =>
+ # This module is to be included by `Method` and `UnboundMethod` and
+ # provides the `#source` functionality
+
Limitations:
------------
* Occasional strange behaviour in Ruby 1.8
* Cannot return source for C methods.