Sha256: 41d1b93b5aebdab92e9b0f502b7913070e5ebdafac35ed6b653656965c1b211f

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 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) && name == other.name
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sitehub-0.4.3 lib/sitehub/cookie/flag.rb