class Motion::MultipleRootsError

Public Class Methods

new(component) click to toggle source
Calls superclass method Motion::ComponentError::new
# File lib/motion/errors.rb, line 48
def initialize(component)
  super(
    component,
    "The template for #{component.class} can only have one root " \
    "element.\n" \
    "\n" \
    "Hint: Wrap all elements in a single element, such as `<div>` or " \
    "`<section>`."
  )
end