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