Sha256: 95844536bdb8d665a14481fa2c6fcfe0bd8ceae490d3a412f59a0833ae5a806d

Contents?: true

Size: 313 Bytes

Versions: 7

Compression:

Stored size: 313 Bytes

Contents

# encoding: utf-8

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

7 entries across 7 versions & 1 rubygems

Version Path
mixture-0.6.2 lib/mixture/coerce/range.rb
mixture-0.6.1 lib/mixture/coerce/range.rb
mixture-0.6.0 lib/mixture/coerce/range.rb
mixture-0.5.1 lib/mixture/coerce/range.rb
mixture-0.5.0 lib/mixture/coerce/range.rb
mixture-0.4.0 lib/mixture/coerce/range.rb
mixture-0.3.6 lib/mixture/coerce/range.rb