class Razor::CLI::NavigationError
Public Class Methods
new(url, key, doc)
click to toggle source
Calls superclass method
# File lib/razor/cli.rb, line 6 def initialize(url, key, doc) @key = key; @doc = doc if key.is_a?(Array) super _("Could not navigate to '%{path}' from %{url}") % {path: key.join(" "), url: url} else super _("Could not find entry '%{key}' in document at %{url}") % {key: key, url: url} end end