module Puppet::Util::Assertion::Printer::Styler
Styler
is a mixin that provides a helper method that parses a styled string by evaluating the given proc on an instance of Printer
.
Public Instance Methods
style(&proc)
click to toggle source
# File lib/puppet/util/assertion/printer.rb, line 43 def style(&proc) printer = Puppet::Util::Assertion::Printer.new printer.instance_eval(&proc) print printer.to_s end