You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*[#22](https://github.com/dblock/ruby-enum/pull/22): Added `Ruby::Enum#each_key` and `Ruby::Enum#each_value` - [@dblock](https://github.com/dblock).
10
11
*[#22](https://github.com/dblock/ruby-enum/pull/22): Dropped support for Ruby 2.2 - [@dblock](https://github.com/dblock).
11
12
*[#22](https://github.com/dblock/ruby-enum/pull/22): Upgraded RuboCop to 0.80.1 - [@dblock](https://github.com/dblock).
12
13
13
-
### 0.7.2 (2017/3/15)
14
+
### 0.7.2 (2017/03/15)
14
15
15
16
*[#18](https://github.com/dblock/ruby-enum/pull/18): Added support for non constant definition - [@laertispappas](https://github.com/laertispappas).
16
17
17
-
### 0.7.1 (2017/2/23)
18
+
### 0.7.1 (2017/02/23)
18
19
19
20
*[#16](https://github.com/dblock/ruby-enum/pull/16): Replaced `const_missing` with `const_set` - [@laertispappas](https://github.com/laertispappas).
20
21
21
-
### 0.7.0 (2017/2/21)
22
+
### 0.7.0 (2017/02/21)
22
23
23
24
*[#3](https://github.com/dblock/ruby-enum/pull/13): Added support for subclassing an Enum - [@laertispappas](https://github.com/laertispappas).
24
25
25
-
### 0.6.0 (2016/5/12)
26
+
### 0.6.0 (2016/05/12)
26
27
27
28
*[#12](https://github.com/dblock/ruby-enum/pull/12): A `Ruby::Enum::Errors::DuplicateKeyError` or a `Ruby::Enum::Errors::DuplciateKeyValyeError` will now be raised when duplicate keys / values are defined - [@laertispappas](https://github.com/laertispappas).
28
29
29
-
### 0.5.0 (2015/20/11)
30
+
### 0.5.0 (2015/11/20)
30
31
31
32
*[#8](https://github.com/dblock/ruby-enum/pull/8): Added `Ruby::Enum#key`, `Ruby::Enum#value`, `Ruby::Enum#key?`, and `Ruby::Enum#value?` - [@dmolesUC3](https://github.com/dmolesUC3).
32
33
33
-
### 0.4.0 (2014/29/6)
34
+
### 0.4.0 (2014/06/29)
34
35
35
36
*[#5](https://github.com/dblock/ruby-enum/pull/5): Mixed in `Enumerable` - [@kgann](https://github.com/kgann).
Enum-like behavior for Ruby, heavily inspired by [this](http://www.rubyfleebie.com/enumerations-and-ruby) and improved upon [another blog post](http://code.dblock.org/how-to-define-enums-in-ruby).
9
9
10
+
## Table of Contents
11
+
12
+
-[Usage](#usage)
13
+
-[Constants](#constants)
14
+
-[Class Methods](#class-methods)
15
+
-[Default Value](#default-value)
16
+
-[Enumerating](#enumerating)
17
+
-[Iterating](#iterating)
18
+
-[Mapping](#mapping)
19
+
-[Reducing](#reducing)
20
+
-[Sorting](#sorting)
21
+
-[Hashing](#hashing)
22
+
-[Retrieving keys and values](#retrieving-keys-and-values)
23
+
-[Mapping keys to values](#mapping-keys-to-values)
24
+
-[Mapping values to keys](#mapping-values-to-keys)
25
+
-[Duplicate enumerator keys or duplicate values](#duplicate-enumerator-keys-or-duplicate-values)
26
+
-[Inheritance behavior](#inheritance-behavior)
27
+
-[Contributing](#contributing)
28
+
-[Copyright and License](#copyright-and-license)
29
+
-[Related Projects](#related-projects)
30
+
10
31
## Usage
11
32
12
33
Enums can be defined and accessed either as constants or class methods, which is a matter of preference.
@@ -250,7 +271,7 @@ You're encouraged to contribute to this gem. See [CONTRIBUTING](CONTRIBUTING.md)
250
271
251
272
## Copyright and License
252
273
253
-
Copyright (c) 2013-2020, Daniel Doubrovkine and [Contributors](CHANGELOG.md).
274
+
Copyright (c) 2013-2021, Daniel Doubrovkine and [Contributors](CHANGELOG.md).
254
275
255
276
This project is licensed under the [MIT License](LICENSE.md).
0 commit comments