Method: ROM::JSON::Gateway.load_from
- Defined in:
- lib/rom/json/gateway.rb
.load_from(path) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Load data from json file(s)
51 52 53 54 55 56 57 |
# File 'lib/rom/json/gateway.rb', line 51 def self.load_from(path) if File.directory?(path) load_files(path) else load_file(path) end end |