Class: Sprig::NullRecord
- Inherits:
-
Object
- Object
- Sprig::NullRecord
- Includes:
- Logging
- Defined in:
- lib/sprig/null_record.rb
Constant Summary
Constants included from Logging
Logging::LOG_COLORS, Logging::LOG_LEVELS
Instance Method Summary collapse
-
#initialize(error) ⇒ NullRecord
constructor
A new instance of NullRecord.
- #method_missing ⇒ Object
Constructor Details
#initialize(error) ⇒ NullRecord
Returns a new instance of NullRecord.
5 6 7 |
# File 'lib/sprig/null_record.rb', line 5 def initialize(error) log_error "#{error} (Substituted with NullRecord)" end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing ⇒ Object
9 10 11 |
# File 'lib/sprig/null_record.rb', line 9 def method_missing(*) nil end |