Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Allows the following code:
- #
- # str = clean <<-EOS
- # This is the test
- # heredoc.
- # EOS
- class Minitest::Test
- def clean(s)
- s.gsub(/^#{s[/\A\s*/]}/, '')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement