Class: Cookie::Header::Attribute::Unary Abstract
- Inherits:
-
Cookie::Header::Attribute
- Object
- Cookie::Header::Attribute
- Cookie::Header::Attribute::Unary
- Includes:
- AbstractType
- Defined in:
- lib/cookie/header/attribute.rb
Overview
This class is abstract.
Abstract baseclass for attributes that have no value
Constant Summary collapse
- CACHE =
{}
Constants inherited from Cookie::Header::Attribute
Class Method Summary collapse
Methods inherited from Cookie::Header::Attribute
attribute_name, coerce, register_as, #to_s
Class Method Details
.build(value) ⇒ Object
85 86 87 |
# File 'lib/cookie/header/attribute.rb', line 85 def self.build(value) value ? instance : nil end |