Class: Safer::HashProtocol::ProtocolBase
- Inherits:
-
Object
- Object
- Safer::HashProtocol::ProtocolBase
- Defined in:
- lib/safer/hashprotocol.rb
Overview
Object signature required of HashProtocol objects. Used to derive Safer::HashProtocol::Protocol.
Instance Method Summary collapse
-
#===(h) ⇒ Object
Check that a Hash (h) follows this object’s protocol.
-
#description ⇒ Object
Retrieve a human-readable description of this HashProtocol object.
-
#match(h, remaining) ⇒ Object
Check that a Hash (h) follows this object’s protocol, keeping track of which parts of (h) do not.
Instance Method Details
#===(h) ⇒ Object
Check that a Hash (h) follows this object’s protocol.
63 64 |
# File 'lib/safer/hashprotocol.rb', line 63 def ===(h) end |
#description ⇒ Object
Retrieve a human-readable description of this HashProtocol object.
58 59 |
# File 'lib/safer/hashprotocol.rb', line 58 def description end |
#match(h, remaining) ⇒ Object
Check that a Hash (h) follows this object’s protocol, keeping track of which parts of (h) do not. remaining
should only be updated if h
matches this object.
70 71 |
# File 'lib/safer/hashprotocol.rb', line 70 def match(h, remaining) end |