Class: Naught::NullClassBuilder::Commands::DefineImplicitConversions Private

Inherits:
Naught::NullClassBuilder::Command show all
Defined in:
lib/naught/null_class_builder/commands/define_implicit_conversions.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.

Adds implicit conversion methods to the null class

Instance Attribute Summary

Attributes inherited from Naught::NullClassBuilder::Command

#builder

Instance Method Summary collapse

Methods inherited from Naught::NullClassBuilder::Command

#initialize

Constructor Details

This class inherits a constructor from Naught::NullClassBuilder::Command

Instance Method Details

#callvoid

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.

Install implicit conversion methods



23
24
25
# File 'lib/naught/null_class_builder/commands/define_implicit_conversions.rb', line 23

def call
  defer { |subject| RETURN_VALUES.each { |name, value| subject.define_method(name) { value } } }
end