class Shapeable::Errors::InvalidShapeError
Public Class Methods
new(path, shape, version: nil)
click to toggle source
Calls superclass method
# File lib/shapeable/errors.rb, line 4 def initialize(path, shape, version: nil) resource = path.name.split('::').last.constantize if version super("Invalid shape #{path}::V#{version}::#{resource}#{shape.camelize}Serializer") else super("Invalid shape #{path}::#{resource}#{shape.camelize}Serializer") end end