lib/nanoc/base/compilation/rule.rb in nanoc-4.0.0b4 vs lib/nanoc/base/compilation/rule.rb in nanoc-4.0.0rc1
- old
+ new
@@ -11,9 +11,11 @@
# Ignored for compilation rules, but used for routing rules.
#
# @since 3.2.0
attr_reader :snapshot_name
+ attr_reader :pattern
+
# Creates a new item compilation rule with the given identifier regex,
# compiler and block. The block will be called during compilation with the
# item rep as its argument.
#
# @param [Nanoc::Int::Pattern] pattern