This website works better with JavaScript.
Home
Explore
Help
Sign In
Archivist
/
crystal-scatter
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
2
Wiki
Activity
Browse Source
Made the Ring serializable to JSON
master
Archivist
6 years ago
parent
9c4ca91937
commit
e37603b5a5
1 changed files
with
7 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-3
src/crystal-scatter/ring.cr
+ 7
- 3
src/crystal-scatter/ring.cr
View File
@ -1,9 +1,13 @@
require
"
json
"
module
Crystal::Scatter
class
Slice
property
s_begin
:
UInt64
property
s_end
:
UInt64
property
url
:
String
JSON
.
mapping
(
s_begin
:
UInt64
,
s_end
:
UInt64
,
url
:
String
)
def
initialize
(
@s_begin
,
@s_end
,
@url
)
end
Write
Preview
Loading…
Cancel
Save