github.com/kostya/stuffs
0.6 / published Apr 10, 2021 / repository
Some stuffs which i used in every project for Crystal. Mini ActiveSupport
stuffs
Some stuffs which i used in every project for Crystal. Mini ActiveSupport.
Installation
Add this to your application's shard.yml:
dependencies:
stuffs:
github: kostya/stuffs
Usage
require "stuffs"
List of stuffs
https://github.com/kostya/stuffs/blob/master/src/stuffs.cr
API
- Enumerable(T)
The
Enumerablemixin provides collection classes with several traversal, searching, filtering and querying methods. - NamedTuple(**T)
A named tuple is a fixed-size, immutable, stack-allocated mapping of a fixed set of keys to values.
- Nil
The
Niltype has only one possible value:nil. - String
A
Stringrepresents an immutable sequence of UTF-8 characters. - URI
This class represents a URI reference as defined by RFC 3986: Uniform Resource Identifier (URI): Generic Syntax.