Sha256: 75d6c22892c65e06cf12f7d7394a3592a62a91ba83100def6ba4f328cb9981ad
Contents?: true
Size: 343 Bytes
Versions: 2
Compression:
Stored size: 343 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module Mixture module Coerce # Handles coercion of the Integer class. class Range < Base type Types::Range coerce_to(Types::Object, Itself) coerce_to(Types::Range, Itself) coerce_to(Types::String, :to_s) coerce_to(Types::Array, :to_a) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mixture-0.7.1 | lib/mixture/coerce/range.rb |
mixture-0.7.0 | lib/mixture/coerce/range.rb |