module RailsCrumbs class Crumb attr_accessor :name attr_accessor :path attr_accessor :options def initialize(name, path = nil, options = {}) self.name = name self.path = path self.options = options end private def method_missing(name, *args) if options.has_key? name.to_sym options[name.to_sym] else super(name, *args) end end end end