class Cookie::Header::Attribute::Unary
Abstract baseclass for attributes that have no value
@abstract
Constants
- CACHE
Public Class Methods
build(value)
click to toggle source
# File lib/cookie/header/attribute.rb, line 85 def self.build(value) value ? instance : nil end
instance()
click to toggle source
# File lib/cookie/header/attribute.rb, line 89 def self.instance CACHE.fetch(attribute_name) { CACHE[attribute_name] = new(attribute_name) } end