Method: Motion::MultipleRootsError#initialize
- Defined in:
- lib/motion/errors.rb
#initialize(component) ⇒ MultipleRootsError
Returns a new instance of MultipleRootsError.
48 49 50 51 52 53 54 55 56 57 |
# 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 |