Class: Textualize::RouteHashes
- Inherits:
-
Object
- Object
- Textualize::RouteHashes
- Defined in:
- lib/textualize/tasks/helpers/route_hashes.rb
Class Method Summary collapse
Class Method Details
.hashes ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/textualize/tasks/helpers/route_hashes.rb', line 4 def hashes fail 'run gulp first' if raml_json_files.empty? raml_json_files.flat_map do |json_file| json = JSON.parse(File.read(json_file)) RouteHashCreator.new(json).create_route_hashes end end |