Sha256: c2a9c32e7959bc48b1c8c5f99fd4daf8ae8165f8db4b78f546c7c3c9239e293d

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

module Mixture
  module Coerce
    # Handles coercion of the Numeric class.
    class Symbol < Base
      type Types::Symbol

      coerce_to(Types::Object, Itself)
      coerce_to(Types::String, :to_s)
      coerce_to(Types::Symbol, Itself)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mixture-0.7.1 lib/mixture/coerce/symbol.rb
mixture-0.7.0 lib/mixture/coerce/symbol.rb