class Ahnnotate::Function::Niam
Public Instance Methods
call()
click to toggle source
# File lib/ahnnotate/function/niam.rb, line 6 def call @config["annotate"].each do |facet_name, config| if !config["enabled"] next end schema_stripper = StripSchema.new(comment: "#") vfs.each_in(config["path"], config["extension"]) do |path, content| content_with_stripped_schema = schema_stripper.call(content) if content_with_stripped_schema.size < content.size vfs[path] = content_with_stripped_schema end end end end