Module: JsonReducer
- Defined in:
- lib/json_reducer.rb,
lib/json_reducer/mask.rb,
lib/json_reducer/schemas.rb,
lib/json_reducer/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
'1.1.0'.freeze
Class Method Summary collapse
Class Method Details
.base_path(path) ⇒ Object
15 16 17 |
# File 'lib/json_reducer.rb', line 15 def self.base_path(path) JsonReducer::Schemas.instance.base_path = path end |
.new(*args) ⇒ Object
7 8 9 |
# File 'lib/json_reducer.rb', line 7 def self.new(*args) Mask.new(*args) end |
.register(key, schema, file: true) ⇒ Object
11 12 13 |
# File 'lib/json_reducer.rb', line 11 def self.register(key, schema, file: true) JsonReducer::Schemas.instance.set(key, schema, file) end |