Sha256: dd4b7f303182591195e408f6899b5dc64f3293e6fb7ae2052a1eaec4a350537d

Contents?: true

Size: 399 Bytes

Versions: 6

Compression:

Stored size: 399 Bytes

Contents

module SignatureGenerator

  class Context

    def initialize(hash={})
      @internal_hash = hash
    end

    def []=(key,val)
      internal_hash[key] = val
    end

    def method_missing(*args)
      method_name = args.shift
      return internal_hash[method_name] if internal_hash[method_name]
      super(method_name, *args)
    end

    private

    attr_reader :internal_hash

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
signature_generator-0.1.6 lib/signature_generator/context.rb
signature_generator-0.1.5 lib/signature_generator/context.rb
signature_generator-0.1.4 lib/signature_generator/context.rb
signature_generator-0.1.3 lib/signature_generator/context.rb
signature_generator-0.1.2 lib/signature_generator/context.rb
signature_generator-0.1.1 lib/signature_generator/context.rb