# File lib/mustache/generator.rb, line 125 def on_inverted_section(name, content, raw, _) # Convert the tokenized content of this section into a Ruby # string we can use. code = compile(content) # Compile the Ruby for this inverted section now that we know # what's inside. ev("v = \#{compile!(name)}\nif v.nil? || v == false || v.respond_to?(:empty?) && v.empty?\n\#{code}\nend\n") end