Class: ClaudeMemory::Core::NullFact
- Inherits:
-
Object
- Object
- ClaudeMemory::Core::NullFact
- Defined in:
- lib/claude_memory/core/null_fact.rb
Overview
Null object pattern for Fact Represents a non-existent fact without using nil
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
25 26 27 |
# File 'lib/claude_memory/core/null_fact.rb', line 25 def [](key) to_h[key] end |
#present? ⇒ Boolean
8 9 10 |
# File 'lib/claude_memory/core/null_fact.rb', line 8 def present? false end |
#to_h ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/claude_memory/core/null_fact.rb', line 12 def to_h { id: nil, subject_name: nil, predicate: nil, object_literal: nil, status: "not_found", confidence: 0.0, valid_from: nil, valid_to: nil } end |