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

### Home Classes Methods

### In Files

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

### Parent

Naught::NullClassBuilder::Command

### Methods

- #call
- #to_ary
- #to_str

### 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::DefineImplicitConversions

### Public Instance Methods

call() click to toggle source

    # File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 5
    def call
      defer do |subject|
        subject.module_eval do
          def to_ary
            []
          end

          def to_str
            ''
          end
        end
      end
    end

to_ary() click to toggle source

    # File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 8
    def to_ary
      []
    end

to_str() click to toggle source

    # File lib/naught/null_class_builder/commands/define_implicit_conversions.rb, line 12
    def to_str
      ''
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.