String#indent
is not a standard Ruby method. When you use it, be sure to know where this method comes from. Many Gems shamelessly define this method for internal usage, and you'll never know when it may be removed (since it's usually not part of the Gem's API).
Unless you're using Rails 4 (which brings String#indent
in ActiveSupport), you'll be best of defining it yourself. This card has it for you.
Gems that define String#indent
(incomplete)
- cucumber 0.4 to 1.3.2
- activesupport 4+
- treetop 1.4.8 to 1.4.15 (but not in recent versions Show archive.org snapshot )
Posted by Dominik Schöler to makandra dev (2014-03-06 10:28)