class Flame::Errors::RouteArgumentsOrderError

Error for Route initialization

Public Class Methods

new(path, wrong_ordered_arguments) click to toggle source
# File lib/flame/errors/route_arguments_order_error.rb, line 7
def initialize(path, wrong_ordered_arguments)
        @path = path
        @wrong_ordered_arguments = wrong_ordered_arguments
end

Public Instance Methods

message() click to toggle source
# File lib/flame/errors/route_arguments_order_error.rb, line 12
def message
        "Path '#{@path}' should have" \
                " '#{@wrong_ordered_arguments.first}' argument before" \
                " '#{@wrong_ordered_arguments.last}'"
end