Sha256: 3370278aca209752a9cd98857937b1a6479cfb0613a6b979a744ee09d6a9c337

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Types
    # An integer.  Not much to say here.
    class Integer < Numeric
      register
      options[:primitive] = ::Integer
      options[:method] = :to_integer
      as :int, :integer
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

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