views

Views and wrappers for stdlib collections

Views

A collection of views and wrappers of collection types such as Array and Hash.

A view is a read-only version of the corresponding type, e.g, ArrayView gives access to an Array.

A wrapper is like a view, but the methods returning the same type instead will return a wrapped value, e.g., ArrayWrapper#select method will return an ArrayWrapper instead of an Array. There are both read-only and mutable variants of each wrapper, e.g., ArrayWrapper and ArrayWrapper::Mutable.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      views:
        github: franciscoadasme/views
    
  2. Run shards install

Usage

require "views"

TODO: Write usage instructions here

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/franciscoadasme/views/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

views

Owner
Statistic
  • 0
  • 0
  • 0
  • 3
  • 1
  • over 2 years ago
  • April 26, 2022
License

MIT License

Links
Synced at

Sat, 21 Dec 2024 18:56:04 GMT

Languages