Module: ActiveInteractor::Type::DeclerationMethods::ClassMethods

Included in:
Context::Base, Interactor::Base
Defined in:
lib/active_interactor/type/decleration_methods.rb

Instance Method Summary collapse

Instance Method Details

#anyObject



11
12
13
# File 'lib/active_interactor/type/decleration_methods.rb', line 11

def any
  :any
end

#list(type) ⇒ Object Also known as: array



15
16
17
# File 'lib/active_interactor/type/decleration_methods.rb', line 15

def list(type)
  List.new(type)
end

#union(*types) ⇒ Object



20
21
22
# File 'lib/active_interactor/type/decleration_methods.rb', line 20

def union(*types)
  Union.new(*types)
end

#untypedObject



24
25
26
# File 'lib/active_interactor/type/decleration_methods.rb', line 24

def untyped
  :untyped
end