Sha256: 3a91d66f2f832d1df15a446e4448bdcc0007002cc7252830231f1fcac99f9b1d
Contents?: true
Size: 379 Bytes
Versions: 4
Compression:
Stored size: 379 Bytes
Contents
# frozen_string_literal: true module Zenaton # :nodoc module Refinements refine Range do # Convert to a simple hash def to_zenaton { 'a' => [first, last, exclude_end?] } end end end end # Reimplements `json/add/range` class Range # Parse from simple hash def self.from_zenaton(props) new(*props['a']) end end
Version data entries
4 entries across 4 versions & 1 rubygems