Files
news.gitea.happylizard.me/bin/gems/yell-2.2.2/lib/yell/helpers/formatter.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

32 lines
538 B
Ruby

module Yell #:nodoc:
module Helpers #:nodoc:
module Formatter #:nodoc:
# Set the format for your message.
def formatter=( pattern )
@__formatter__ = case pattern
when Yell::Formatter then pattern
else Yell::Formatter.new(*pattern)
end
end
alias :format= :formatter=
def formatter
@__formatter__
end
alias :format :formatter
private
def reset!
@__formatter__ = Yell::Formatter.new
super
end
end
end
end