class ViewModel::DeserializationError::DuplicateNodes

Attributes

type[R]

Public Class Methods

new(type, nodes) click to toggle source
Calls superclass method ViewModel::AbstractErrorWithBlame::new
# File lib/view_model/deserialization_error.rb, line 217
def initialize(type, nodes)
  @type = type
  super(nodes)
end

Public Instance Methods

detail() click to toggle source
# File lib/view_model/deserialization_error.rb, line 222
def detail
  "Duplicate views for the same '#{type}' specified: " + nodes.map(&:to_s).join(', ')
end
meta() click to toggle source
Calls superclass method ViewModel::AbstractErrorWithBlame#meta
# File lib/view_model/deserialization_error.rb, line 226
def meta
  super.merge(type: type)
end