On Mon, Jan 31, 2011 at 7:31 PM, Philip Hallstrom <philip@pjkh.com> wrote:
> ruby-1.8.7-p330 :007 > "one two three".truncate(7)
> => "one ..."
>
> In my opinion, that space shouldn't be there.
> Anyone have any thoughts on the matter?
I can imagine circumstances involving fixed-width fonts where having
an unpredictable number of characters left would be bad, and at the very
least a POLS violation.
And personally, the space being included doesn't bother me. :-)
FWIW!
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment