Sha256: 2af9fa7efd630432c1c6ae98d71b12efd4bbb66c405d3763bba8f08066449d1d

Contents?: true

Size: 381 Bytes

Versions: 7

Compression:

Stored size: 381 Bytes

Contents

# encoding: utf-8

module Mixture
  module Types
    # A symbol.  Don't really use this for coercion; in Ruby 2.2.2,
    # they added garbage collection for symbols; however, it is still
    # not a brilliant idea to turn user input into symbols.
    class Symbol < Object
      options[:primitive] = ::Symbol
      options[:method] = :to_symbol
      as :symbol
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mixture-0.4.0 lib/mixture/types/symbol.rb
mixture-0.3.6 lib/mixture/types/symbol.rb
mixture-0.3.5 lib/mixture/types/symbol.rb
mixture-0.3.4 lib/mixture/types/symbol.rb
mixture-0.3.2 lib/mixture/types/symbol.rb
mixture-0.3.1 lib/mixture/types/symbol.rb
mixture-0.3.0 lib/mixture/types/symbol.rb