This commit is contained in:
YoheiZuho 2022-05-16 13:33:16 +09:00
parent 563d706886
commit 692406344b

View File

@ -22,7 +22,7 @@ class TextFormatter
# @option options [Boolean] :with_rel_me
# @option options [Array<Account>] :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