Method: Xcode::Configuration::SpaceDelimitedString#append

Defined in:
lib/xcode/configurations/space_delimited_string_property.rb

#append(original, value) ⇒ Object

Space Delimited Strings are not unlike arrays and those we assume that the inputs are going to be two arrays that will be joined and then ensured that only the unique values are saved.

Parameters:

  • original (Nil, String)

    the original value stored within the field

  • value (Nil, String, Array)

    the new values that will coerced into an array and joined with the original values.



58
59
60
# File 'lib/xcode/configurations/space_delimited_string_property.rb', line 58

def append(original,value)
  save( ( open(original) + Array(value)).uniq )
end