Class: SmartCore::Initializer::TypeSystem::SmartTypes::Operation::Cast Private

Inherits:
Base show all
Defined in:
lib/smart_core/initializer/type_system/smart_types/operation/cast.rb

Overview

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.

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Interop::Operation

#initialize

Constructor Details

This class inherits a constructor from SmartCore::Initializer::TypeSystem::Interop::Operation

Instance Method Details

#call(value) ⇒ Any

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.

Parameters:

  • value (Any)

Returns:

  • (Any)

Since:

  • 0.1.0



12
13
14
# File 'lib/smart_core/initializer/type_system/smart_types/operation/cast.rb', line 12

def call(value)
  type.cast(value)
end