lib/yard_types/types.rb
def or_list(ary)
      size = ary.size
      ary.to_enum.with_index.inject('') do |acc, (s, index)|
        acc << s.to_s
        acc << ", "    if index < size - 2
        acc << ", or " if index == size - 2
        acc
      end
    end
def or_list(ary)
      size = ary.size
      ary.to_enum.with_index.inject('') do |acc, (s, index)|
        acc << s.to_s
        acc << ", "    if index < size - 2
        acc << ", or " if index == size - 2
        acc
      end
    end
def or_list ( ary ) size = ary . size ary . to_enum . with_index . inject ( '' ) do | acc , ( s , index ) | acc << s . to_s acc << ", " if index < size - 2 acc << ", or " if index == size - 2 acc end end
:nodoc:
: nodoc :