Sha256: 0145da512800da6598e33c53dadbf13c2d5b0fadb48cf71566637408c2f96b76

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

module ApplicationConfig
  module DataStructures
    class AlwaysNullNode
  
      def initialize
        
      end
      
      def nil?
        return true
      end
      
      def to_s
        ""
      end
      
      def ==(other)
        other == nil
      end
      
      def eql?(other)
        other.eql?(nil)
      end
      
      def [](key)
        ApplicationConfig::DataStructures::AlwaysNullNode.new
      end
      
      def method_missing(method)
        ApplicationConfig::DataStructures::AlwaysNullNode.new
      end
    end
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
application_config-0.0.2 lib/application_config/data_structures/always_null_node.rb