devel/ruby-arrayfields 4.9.2 OpenBSD
allow keyword access to array instances
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- Jeremy Evans <[email protected]>
- Categories
- devel, lang/ruby
Description
allow keyword access to array instances. arrayfields works by adding only a few methods to arrays, namely #fields= and fields, but the #fields= method is hooked to extend an array on a per object basis. in otherwords __only__ those arrays whose fields are set will have auto-magical keyword access bestowed on them - all other arrays remain unaffected. arrays with keyword access require much less memory when compared to hashes/objects and yet still provide fast lookup and preserve data order.
Install
Binary package:
pkg_add ruby40-arrayfields
From the ports tree:
cd /usr/ports/devel/ruby-arrayfields && make install
Dependencies
Build dependencies 1
Run dependencies 1
No port depends on this one.