Sha256: 7609a3ca65b14734846d78a4a43a29455266cad85a4744259fcd0c52b07c9112

Contents?: true

Size: 480 Bytes

Versions: 1

Compression:

Stored size: 480 Bytes

Contents

require 'forwardable'
module ApplicationConfig
  module DataStructures
    class ValueNode
      extend Forwardable
      def_delegators :@value, :eql?, :==, :to_s, :to_str, :to_i
      
      def initialize(value)
        @value = value
      end
      
      def [](key)
        ApplicationConfig::DataStructures::AlwaysNullNode.new
      end
      
      def method_missing(method_name)
        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/value_node.rb