From: Clay Trump Date: 2012-07-17T07:39:12+09:00 Subject: [ruby-core:46526] Re: [ruby-trunk - Feature #6731] add new method "Object.present?" as a counter to #empty? --14dae934125bf2c69004c4fa1896 Content-Type: text/plain; charset=ISO-8859-1 Hum, wouldn't this conflict with Rails? In Rails, " ".present? is falseclass Object > > def present? > !(respond_to?(:empty?) ? empty? : !self) > end > > end > > -- --14dae934125bf2c69004c4fa1896 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hum, wouldn't this conflict with Rails? In Rails,=A0 "=A0=A0=A0=A0= ".present? is falseclass Object

=A0 def present?
=A0 =A0 !(respond_to?(:empty?) ? empty? : !self)
=A0 end

end

--
<lay trum/>

--14dae934125bf2c69004c4fa1896--