class Attributor::Flatpack::MultilineString
Public Class Methods
example(*)
click to toggle source
# File lib/attributor/flatpack/types/multiline_string.rb, line 15 def self.example(*) '-----BEGIN EC PRIVATE KEY-----\\nMIHcAgEBBEI\\n3abcdefghijklmnop==\\n-----END EC PRIVATE KEY-----' end
load(value, context = Attributor::DEFAULT_ROOT_CONTEXT, **options)
click to toggle source
Calls superclass method
# File lib/attributor/flatpack/types/multiline_string.rb, line 9 def self.load(value, context = Attributor::DEFAULT_ROOT_CONTEXT, **options) value.gsub('\\n', "\n") rescue StandardError super end