Sha256: 4ff4d784e9dc665050d068944297c21f9382d67d11d26a33888a97012de104e1
Contents?: true
Size: 355 Bytes
Versions: 2
Compression:
Stored size: 355 Bytes
Contents
require 'sitehub/string_sanitiser' class SiteHub class Cookie class Flag include StringSanitiser attr_accessor :name def initialize flag @name = sanitise(flag).to_sym end def to_s name.to_s end def == other other.is_a?(Flag) && self.name == other.name end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sitehub-0.4.2 | lib/sitehub/cookie/flag.rb |
sitehub-0.4.1 | lib/sitehub/cookie/flag.rb |