Module: Spruz::Null

### Home Classes Methods

### In Files

- lib/spruz/null.rb

### Methods

- #const_missing
- #inspect
- #method_missing
- #to_s

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Spruz
- Spruz::Attempt
- Spruz::Bijection
- Spruz::Blank
- Spruz::Blank::Array
- Spruz::Blank::FalseClass
- Spruz::Blank::Hash
- Spruz::Blank::NilClass
- Spruz::Blank::Numeric
- Spruz::Blank::Object
- Spruz::Blank::String
- Spruz::Blank::TrueClass
- Spruz::CountBy
- Spruz::DeepDup
- Spruz::FileBinary
- Spruz::FileBinary::ClassMethods
- Spruz::FileBinary::Constants
- Spruz::Full
- Spruz::GO
- Spruz::Generator
- Spruz::HashSymbolizeKeysRecursive
- Spruz::HashUnion
- Spruz::Limited
- Spruz::LinesFile
- Spruz::LinesFile::LineExtension
- Spruz::Memoize
- Spruz::Minimize
- Spruz::ModuleGroup
- Spruz::Null
- Spruz::Once
- Spruz::P
- Spruz::PartialApplication
- Spruz::RangePlus
- Spruz::Round
- Spruz::SecureWrite
- Spruz::Shuffle
- Spruz::StringCamelize
- Spruz::StringUnderscore
- Spruz::StringVersion
- Spruz::StringVersion::Version
- Spruz::Subhash
- Spruz::TimeDummy
- Spruz::TimeDummy::ClassMethods
- Spruz::ToProc
- Spruz::UniqBy
- Spruz::Write
- Array
- Enumerable
- File
- Float
- Hash
- IO
- IRB
- Integer
- Method
- Module
- Object
- Proc
- Range
- String
- Symbol
- Time

No matching classes.

# Spruz::Null

Implementation of the null object pattern in Ruby.

### Public Instance Methods

const_missing(*) click to toggle source

    # File lib/spruz/null.rb, line 8
    def const_missing(*)
      self
    end

inspect() click to toggle source

    # File lib/spruz/null.rb, line 16
    def inspect
      'NULL'
    end

method_missing(*) click to toggle source

    # File lib/spruz/null.rb, line 4
    def method_missing(*)
      self
    end

to_s() click to toggle source

    # File lib/spruz/null.rb, line 12
    def to_s
      ''
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.