diff options
author | John Mair <jrmair@gmail.com> | 2010-12-18 22:08:09 +1300 |
---|---|---|
committer | John Mair <jrmair@gmail.com> | 2010-12-18 22:08:09 +1300 |
commit | ac16884afaead1aa91bd747f0fee5aff2bd3abeb (patch) | |
tree | c9d18a367385bdb643a844820bbc01b7f7044bce /lib/method_source.rb | |
parent | 0a790101fecb2738a2944f693f033ead82b812bd (diff) | |
download | method_source-ac16884afaead1aa91bd747f0fee5aff2bd3abeb.tar.gz |
removed kruft (stringio and explicit receiver for valid_expression?)
Diffstat (limited to 'lib/method_source.rb')
-rw-r--r-- | lib/method_source.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/method_source.rb b/lib/method_source.rb index ecb546e..93a1109 100644 --- a/lib/method_source.rb +++ b/lib/method_source.rb @@ -3,7 +3,6 @@ direc = File.dirname(__FILE__) -require 'stringio' require "#{direc}/method_source/version" if RUBY_VERSION =~ /1.9/ @@ -36,7 +35,7 @@ module MethodSource val = file.readline code << val - return code if MethodSource.valid_expression?(code) + return code if valid_expression?(code) end ensure |