On Nov 13, 10:35 am, Kamil <kamil.kuk... / gmail.com> wrote:
> I wish there would be this simple method in the core:
>
> class Object
>   def in?(an_array)
>     an_array.include?(self)
>   end
> end
>
> Having that it's nice to write:
>
> a = %w(hello world out there)
> puts 'world'.in?(a)

concise, but it inverts the oop flow. is it really a big deal to do:

  a.include?('world')

t.