lib/qonfig/dsl.rb in qonfig-0.4.0 vs lib/qonfig/dsl.rb in qonfig-0.5.0
- old
+ new
@@ -96,7 +96,17 @@
convert_values: convert_values,
prefix: prefix,
trim_prefix: trim_prefix
)
end
+
+ # @param file_path [String]
+ # @option strict [Boolean]
+ # @return [void]
+ #
+ # @api public
+ # @since 0.5.0
+ def load_from_json(file_path, strict: true)
+ commands << Qonfig::Commands::LoadFromJSON.new(file_path, strict: strict)
+ end
end
end