diff options
-rw-r--r-- | lib/method_source.rb | 2 | ||||
-rw-r--r-- | lib/method_source/version.rb | 2 | ||||
-rw-r--r-- | test/test_helper.rb | 6 |
3 files changed, 2 insertions, 8 deletions
diff --git a/lib/method_source.rb b/lib/method_source.rb index 43651b9..82cf947 100644 --- a/lib/method_source.rb +++ b/lib/method_source.rb @@ -80,7 +80,7 @@ module MethodSource if (line =~ /^\s*#/) || (line =~ /^\s*$/) buffer << line.lstrip else - buffer.clear + buffer.replace("") end end diff --git a/lib/method_source/version.rb b/lib/method_source/version.rb index d2beb90..38d90e1 100644 --- a/lib/method_source/version.rb +++ b/lib/method_source/version.rb @@ -1,3 +1,3 @@ module MethodSource - VERSION = "0.3.3" + VERSION = "0.3.4" end diff --git a/test/test_helper.rb b/test/test_helper.rb index 26d108b..ed5fa26 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,9 +1,3 @@ -class String - def clear - replace("") - end -end - module M def hello; :hello_module; end end |