class Migajas::Trail::Crumb
Crumbs are dumb values that know their name
, their url
, and whether they match the current URL (according to the `env`, which they inherit from their trail).
Attributes
name[R]
url[R]
Public Class Methods
new(name, url, env)
click to toggle source
# File lib/migajas.rb, line 81 def initialize(name, url, env) @name = name @url = url @env = env end
Public Instance Methods
current?()
click to toggle source
# File lib/migajas.rb, line 87 def current? url == (@env["SCRIPT_NAME"] + @env["PATH_INFO"]) end