Superclass for all the header container classes
holds directives and values for digest calculation
Redirects attribute messages to the internal directives
Example:
class Credentials < AbstractHeader def initialize @h = { :username => 'Ben' } end end c = Credentials.new c.username #=> 'Ben' c.username = 'Mary' c.username #=> 'Mary'
# File lib/httpauth/digest.rb, line 266 def method_missing(m, *a) if ((m.to_s =~ /^(.*)=$/) == 0) && @h.keys.include?(Regexp.last_match[1].intern) @h[Regexp.last_match[1].intern] = a[0] elsif @h.keys.include? m @h[m] else fail(NameError, "undefined method `#{m}' for #{self}") end end