Class: Naught::NullClassBuilder::Command

### Home Classes Methods

### In Files

- lib/naught/null_class_builder/command.rb

### Parent

Object

### Methods

- ::new
- #call
- #defer

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

### Attributes

builder[R]

### Public Class Methods

new(builder) click to toggle source

    # File lib/naught/null_class_builder/command.rb, line 6
    def initialize(builder)
      @builder = builder
    end

### Public Instance Methods

call() click to toggle source

    # File lib/naught/null_class_builder/command.rb, line 10
    def call
      fail NotImplementedError,
           'Method #call should be overriden in child classes'
    end

defer(options = {}, &block) click to toggle source

    # File lib/naught/null_class_builder/command.rb, line 15
    def defer(options = {}, &block)
      @builder.defer(options, &block)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.