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

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

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 Attribute Details

#optionsHash (readonly) Originally defined in module Options

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

#typeType (readonly) Originally defined in module Dry::Types::Decorator

Returns:

Instance Method Details

#callable?true

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (true)


20
21
22
# File 'lib/dry/types/default.rb', line 20

def callable?
  true
end

#evaluateObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Evaluates given callable

Returns:

  • (Object)


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

def evaluate
  value.call(type)
end