diff options
author | John Mair <jrmair@gmail.com> | 2012-06-29 05:18:55 +1200 |
---|---|---|
committer | John Mair <jrmair@gmail.com> | 2012-06-29 05:18:55 +1200 |
commit | 6127eb23a14b66bb3ff7506762927c8b27b4db7e (patch) | |
tree | 9780f73f54becaa246fbbfd3a9f71abf73fdacc1 /lib/method_source/version.rb | |
parent | 22cfabf621248394874841b8791b720ca789e7ac (diff) | |
download | method_source-6127eb23a14b66bb3ff7506762927c8b27b4db7e.tar.gz |
define a consume parameter for expression_at and extract_first_expression
When consume is > 0 it prefills the expression buffer with `consume` lines of input. This enables
you to rapidly check a large chunk of code for validity as you skip over the initial portion you know is valid
without having to perform an expensive eval() on each line.
Diffstat (limited to 'lib/method_source/version.rb')
0 files changed, 0 insertions, 0 deletions