Module: Nidyx::ObjCUtils
- Includes:
- ObjCConstants
- Defined in:
- lib/nidyx/objc/utils.rb
Constant Summary
Constants included from ObjCConstants
Nidyx::ObjCConstants::ATTRIBUTES, Nidyx::ObjCConstants::BOXABLE_NUMBERS, Nidyx::ObjCConstants::ENUM_TYPES, Nidyx::ObjCConstants::FORBIDDEN_PROPERTY_PREFIXES, Nidyx::ObjCConstants::OBJECTS, Nidyx::ObjCConstants::OBJECT_ATTRIBUTES, Nidyx::ObjCConstants::PRIMITIVE_ATTRIBUTES, Nidyx::ObjCConstants::SIMPLE_NUMBERS, Nidyx::ObjCConstants::TYPES
Class Method Summary collapse
-
.filter_standard_types(types) ⇒ Array[Symbol]
Filters standard objc object types from an array of types.
Class Method Details
.filter_standard_types(types) ⇒ Array[Symbol]
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"]) #=> []
16 17 18 19 |
# 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 |