class Nanoc::RuleDSL::CompilationRule
Public Instance Methods
apply_to(rep, site:, recorder:, view_context:)
click to toggle source
# File lib/nanoc/rule_dsl/compilation_rule.rb, line 12 def apply_to(rep, site:, recorder:, view_context:) context = Nanoc::RuleDSL::CompilationRuleContext.new( rep:, recorder:, site:, view_context:, ) context.instance_exec(matches(rep.item.identifier), &@block) end