summaryrefslogtreecommitdiff
path: root/lib/method_source/version.rb
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2012-06-29 05:18:55 +1200
committerJohn Mair <jrmair@gmail.com>2012-06-29 05:18:55 +1200
commit6127eb23a14b66bb3ff7506762927c8b27b4db7e (patch)
tree9780f73f54becaa246fbbfd3a9f71abf73fdacc1 /lib/method_source/version.rb
parent22cfabf621248394874841b8791b720ca789e7ac (diff)
downloadmethod_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