module Nidyx::ObjCUtils
Public Class Methods
filter_standard_types(types)
click to toggle source
Filters standard objc object types from an array of types. The result is an array of non-standard object types. For example:
filter_standard_types(["AnObj", "string"]) #=> ["AnObject"] filter_standard_types(["string", "number_obj"]) #=> []
@param type [Array] collection of any objc types @return [Array] the collection w/o standard objc types
# File lib/nidyx/objc/utils.rb, line 16 def self.filter_standard_types(types) # TODO: throw an exception on primitives types.reject { |t| TYPES.keys.include?(t.to_sym) } end