class Textualize::RouteHashes
Public Class Methods
filenames_and_hashes()
click to toggle source
# 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
Private Class Methods
raml_json_files()
click to toggle source
# File lib/textualize/tasks/helpers/route_hashes.rb, line 19 def raml_json_files Dir.glob('.tmp/apis/*.json') end