From: Trans Date: 2013-04-08T23:50:35+09:00 Subject: [ruby-core:54106] Re: [ruby-trunk - Feature #8237][Open] Logical method chaining via inferred receiver --047d7b10caff2bf0fa04d9da781e Content-Type: text/plain; charset=UTF-8 There are at least three other ways to approach this: user.try.profile.try.website.try.thumbnail user.trying{ |u| u.profile.website.thumbnail } user.trying.profile.website.thumbnail.resolve It occurs to me the first could be fairly concise if we think of #s as possessive: user.s.profile.s.website.s.thumbnail Albeit it looks a bit odd. --047d7b10caff2bf0fa04d9da781e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
There are at least three other ways to approach this:
=
=C2=A0 =C2=A0 =C2=A0 user.try.profile.try.website.try.thumbnail
=

= =C2=A0 =C2=A0 =C2=A0 user.trying{ |u| u.profile.website.thumbnail }<= span style=3D"font-family:arial,sans-serif;font-size:13px">

=C2=A0 =C2= =A0 =C2=A0 user.trying.profile.website.thumbnail.resolve

It occurs to me th= e first could be fairly concise if we think of #s as=C2=A0possessive:

=C2=A0 =C2=A0 =C2=A0 user.s.profile.s.website.s.thumbnail
<= /div>

Albeit it looks a bit odd.

--047d7b10caff2bf0fa04d9da781e--