Sha256: d6eeb97fb89d7f4ab41969295f751dda5037dc8456de5511194143256b89daac

Contents?: true

Size: 402 Bytes

Versions: 15

Compression:

Stored size: 402 Bytes

Contents

class Array
  
  #
  # Arrays in an Xcode project take a particular format.
  # 
  # @note the last element in the array can have a comma; it is optional.
  # 
  # @example output format:
  # 
  #     (
  #       ITEM1,
  #       ITEM2,
  #       ITEM3
  #     )
  # 
  def to_xcplist
    plist_of_items = map {|item| item.to_xcplist }.join(",\n")
    
    %{(
      #{plist_of_items}
    )}
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
xcoder-0.1.18 lib/xcode/core_ext/array.rb
xcoder-0.1.15 lib/xcode/core_ext/array.rb
xcoder-0.1.14 lib/xcode/core_ext/array.rb
xcoder-0.1.13 lib/xcode/core_ext/array.rb
xcoder-0.1.12 lib/xcode/core_ext/array.rb
xcoder-0.1.11 lib/xcode/core_ext/array.rb
xcoder-0.1.10 lib/xcode/core_ext/array.rb
xcoder-0.1.9 lib/xcode/core_ext/array.rb
xcoder-0.1.8 lib/xcode/core_ext/array.rb
xcoder-0.1.7 lib/xcode/core_ext/array.rb
xcoder-0.1.6 lib/xcode/core_ext/array.rb
xcoder-0.1.4 lib/xcode/core_ext/array.rb
xcoder-0.1.3 lib/xcode/core_ext/array.rb
xcoder-0.1.2 lib/xcode/core_ext/array.rb
xcoder-0.1.0 lib/xcode/core_ext/array.rb