Module: Fried::Typings::MetaType

Included in:
ArrayOf, EnumeratorOf, HashOf, Is, IsStrictly, OneOf, StrictlyOneOf, TupleOf
Defined in:
lib/fried/typings/meta_type.rb

Overview

Protocol to generate Type

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/fried/typings/meta_type.rb', line 7

def self.included(klass)
  klass.instance_eval do
    class << self
      extend Forwardable

      # @!method []
        # @param args [Array<Class, Module, Type>]
        # @return [Type]
      def_delegator :self, :new, :[]
    end
  end
end