Class: Naught::NullClassBuilder::Commands::DefineExplicitConversions

### Home Classes Methods

### In Files

- lib/naught/null_class_builder/commands/define_explicit_conversions.rb

### Parent

Naught::NullClassBuilder::Command

### Methods

- #call

### Class/Module Index

Quicksearch

- Naught
- Naught::Conversions
- Naught::NullClassBuilder
- Naught::NullClassBuilder::Command
- Naught::NullClassBuilder::Commands
- Naught::NullClassBuilder::Commands::DefineExplicitConversions
- Naught::NullClassBuilder::Commands::DefineImplicitConversions
- Naught::NullClassBuilder::Commands::Impersonate
- Naught::NullClassBuilder::Commands::Mimic
- Naught::NullClassBuilder::Commands::Pebble
- Naught::NullClassBuilder::Commands::PredicatesReturn
- Naught::NullClassBuilder::Commands::Singleton
- Naught::NullClassBuilder::Commands::Traceable
- Naught::NullObjectTag

No matching classes.

# Naught::NullClassBuilder::Commands::DefineExplicitConversions

### Public Instance Methods

call() click to toggle source

    # File lib/naught/null_class_builder/commands/define_explicit_conversions.rb, line 6
    def call
      defer do |subject|
        subject.module_eval do
          extend Forwardable
          def_delegators :nil, :to_a, :to_c, :to_f, :to_h, :to_i, :to_r, :to_s
        end
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.