Skip to content

Commit 96cb3a3

Browse files
committed
* README.ms
1 parent 0682dd1 commit 96cb3a3

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,17 @@
66
![Coverage](coverage-badge.svg)
77

88
Enum types for Ruby
9+
10+
## Usage
11+
12+
```ruby
13+
require 'is-enum'
14+
15+
class MyEnum < IS::Enum
16+
17+
define :alpha, 1
18+
define :beta, 2
19+
define :b, alias: :beta
20+
21+
end
22+
```

0 commit comments

Comments
 (0)