Class: Dry::Types::Default::Callable

Inherits:
Dry::Types::Default show all
Defined in:
lib/dry/types/default.rb

Instance Attribute Summary

Attributes inherited from Dry::Types::Default

#value

Attributes included from Dry::Types::Decorator

#type

Attributes included from Options

#options

Instance Method Summary collapse

Methods inherited from Dry::Types::Default

[], #call, #constrained, #default?, #initialize, #try

Methods included from Builder

#constrained, #constrained_type, #constructor, #default, #enum, #maybe, #optional, #safe, #|

Methods included from Dry::Types::Decorator

#constrained?, #constructor, #decorate?, #default?, #initialize, #method_missing, #respond_to_missing?, #try, #valid?

Methods included from Options

#initialize, #meta, #with

Constructor Details

This class inherits a constructor from Dry::Types::Default

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Dry::Types::Decorator

Instance Method Details

#evaluateObject

Evaluates given callable

Returns:

  • (Object)


15
16
17
# File 'lib/dry/types/default.rb', line 15

def evaluate
  value.call
end