Class: ConstConf::JSONPlugin::JSONConfig
- Inherits:
-
JSON::GenericObject
- Object
- JSON::GenericObject
- ConstConf::JSONPlugin::JSONConfig
- Defined in:
- lib/const_conf/json_plugin.rb
Overview
JSONConfig - Custom JSON object class for config values
Rejects 'json_class' during serialization to prevent forcing concrete class re-materialization on deserialization. Useful for polymorphic configuration handling.
Instance Method Summary collapse
-
#as_json(*a) ⇒ Hash
as_json - Serialize hash without metadata keys.
Instance Method Details
#as_json(*a) ⇒ Hash
as_json - Serialize hash without metadata keys
20 21 22 |
# File 'lib/const_conf/json_plugin.rb', line 20 def as_json(*a) super.reject { _1 == 'json_class' } end |