From 692406344b86a062ed2f772840b6c2ee5cca3fb6 Mon Sep 17 00:00:00 2001 From: YoheiZuho Date: Mon, 16 May 2022 13:33:16 +0900 Subject: [PATCH] test --- app/lib/text_formatter.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/lib/text_formatter.rb b/app/lib/text_formatter.rb index 1e12cad9a..cdd7b7fe2 100644 --- a/app/lib/text_formatter.rb +++ b/app/lib/text_formatter.rb @@ -22,7 +22,7 @@ class TextFormatter # @option options [Boolean] :with_rel_me # @option options [Array] :preloaded_accounts # @option options [Status] :quote - + def initialize(text, options = {}) @text = text @options = DEFAULT_OPTIONS.merge(options) @@ -167,4 +167,12 @@ class TextFormatter def preloaded_accounts? preloaded_accounts.present? end + + def quote + options[:quote] + end + + def quote? + quote.present? + end end