summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2010-12-17 04:34:57 +1300
committerJohn Mair <jrmair@gmail.com>2010-12-17 04:34:57 +1300
commit9c0afdcf3f57e224b33f587804c307aa891a0d7f (patch)
treebaa61f8ea92427d9546f0f91594ac2c08fa4fba9 /README.markdown
parent2895bb245fd216be96da6e4d6b9e361248934450 (diff)
downloadmethod_source-9c0afdcf3f57e224b33f587804c307aa891a0d7f.tar.gz
added warning about YARV only (due to RubyVM, so not JRuby compatible). Also added support and tests for Proc#source
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown
index 0d73f38..7a389f9 100644
--- a/README.markdown
+++ b/README.markdown
@@ -6,7 +6,7 @@ method_source
_retrieve the sourcecode for a method_
`method_source` is a utility to return a method's sourcecode as a
-Ruby string.
+Ruby string. Also returns `Proc` and `Lambda` sourcecode.
It is written in pure Ruby (no C).
@@ -17,8 +17,8 @@ It is written in pure Ruby (no C).
* Read the [documentation](http://rdoc.info/github/banister/method_source/master/file/README.markdown)
* See the [source code](http://github.com/banister/method_source)
-example:
----------
+Example: methods
+----------------
Set.instance_method(:merge).source.display
# =>
@@ -35,7 +35,7 @@ example:
Limitations:
------------
-* Only works with Ruby 1.9+
+* Only works with Ruby 1.9+ (YARV)
* Cannot return source for C methods.
* Cannot return source for dynamically defined methods.