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

#options, #type

Instance Method Summary collapse

Methods inherited from Dry::Types::Default

[], #call, #initialize

Methods included from Builder

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

Methods included from Dry::Types::Decorator

#constructor, #initialize, #respond_to_missing?, #valid?, #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



10
11
12
# File 'lib/dry/types/default.rb', line 10

def evaluate
  value.call
end