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

Inherits:
Base show all
Defined in:
lib/smart_core/initializer/plugins/thy_types/thy_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) ⇒ void

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.

This method returns an undefined value.

Parameters:

  • value (Any)

Raises:

Since:

  • 0.1.0



14
15
16
17
18
19
# File 'lib/smart_core/initializer/plugins/thy_types/thy_types/operation/cast.rb', line 14

def call(value)
  raise(
    SmartCore::Initializer::TypeCastingUnsupportedError,
    'ThyTypes type system has no support for type casting.'
  )
end