1 2 3 4 5 6
class String # Enable more predictable duck-typing on String-like classes. See <tt>Object#acts_like?</tt>. def acts_like_string? true end end