MRCEnumerable
Implementations of common Ruby Enumerable module methods as categories on various Objective-C collection classes
Install / Use
/learn @crafterm/MRCEnumerableREADME
MRCEnumerable
Description
MRCEnumerable is an category implementation of several useful methods from the Ruby Enumerable module, such as collect, inject, select, detect, reject, etc, using Objective-C blocks, with a familiar syntax.
Examples
An example of use of each extension method is available in the Tests directory, in the file named after the extension method itself.
In Progress
This project was initially started at Railscamp 8 in Perth, with further methods added over time, and currently extends NSArray, NSDictionary, and NSSet. Feel free to get in contact if you have any suggestions or bug reports, etc. Pull requests with appropriate tests are most welcome.
Installation
MRCEnumerable is available via cocoapods, or can be installed as a vendored git submodule as a project or workspace companion. Please ensure you have -ObjC included in your linker flags for the categories to be loaded, an example project is included.
License
This project is released under the MIT license.
Marcus Crafter - crafterm@redartisan.com
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
