lib/ledger_sync/util/validator.rb in ledger_sync-1.3.5 vs lib/ledger_sync/util/validator.rb in ledger_sync-1.4.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module LedgerSync module Util class Validator attr_reader :data, :contract @@ -12,10 +14,10 @@ def errors @errors ||= call_contract.errors end def full_messages - @full_messages ||= errors.messages.map { |e| "#{e.path.map(&:to_s).join(' ')} #{e.text}"} + @full_messages ||= errors.messages.map { |e| "#{e.path.map(&:to_s).join(' ')} #{e.text}" } end def message @message ||= full_messages.first end