Sha256: 0f9ec92436c8e7bdfa8f902c149883d291654c3d785066cb51633c8bc04087c6

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Types
    # The range type.
    class Range < Enumerable
      register
      options[:primitive] = ::Range
      options[:method] = :to_range
      as :range
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixture-0.7.1 lib/mixture/types/range.rb
mixture-0.7.0 lib/mixture/types/range.rb