Class: Naught::NullClassBuilder::Commands::DefineImplicitConversions Private
- Inherits:
-
Naught::NullClassBuilder::Command
- Object
- Naught::NullClassBuilder::Command
- Naught::NullClassBuilder::Commands::DefineImplicitConversions
- 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
Instance Method Summary collapse
-
#call ⇒ void
private
Install implicit conversion methods.
Methods inherited from Naught::NullClassBuilder::Command
Constructor Details
This class inherits a constructor from Naught::NullClassBuilder::Command
Instance Method Details
#call ⇒ 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.
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 |