Phil Crissman wrote in post #992790: > On Thu, Apr 14, 2011 at 10:09 AM, John Merlino <[email protected]> > wrote: > >> Thanks for responses. So it's possible to call include? on a method? >> >> dom_class.include?("sortable") >> > > Well, you aren't calling include? on the method, per se... you're > calling > include? on _whatever thing the method is returning_. So, if the > returned > object responds to include?, then sure, you can.
understood, thanks -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

