Class: Safer::HashProtocol::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/safer/hashprotocol.rb

Overview

Base class of all classes exported from Safer::HashProtocol. Implements ProtocolBase#description signature.

Direct Known Subclasses

Compound, HasKey, Single

Instance Method Summary collapse

Constructor Details

#initialize(description) ⇒ Base

Store description into the #description reader attribute.



91
92
93
# File 'lib/safer/hashprotocol.rb', line 91

def initialize(description)
  self.safer_hashprotocol_base__description = description
end

Instance Method Details

#selfObject

:attr_reader: description Human-readable description of this HashProtocol.



87
# File 'lib/safer/hashprotocol.rb', line 87

Safer::IVar.export_reader(self, :description)