Sha256: 857d141f2e6705a66086f58f9c50598de58171b763af6ca1f2e572353dfc5a93
Contents?: true
Size: 895 Bytes
Versions: 6
Compression:
Stored size: 895 Bytes
Contents
$:<<File.dirname(__FILE__) unless $:.include?(File.dirname(__FILE__)) require 'haml' require 'lolita' module Lolita module Menu module Autocomplete autoload :LinkSet, "lolita-menu/autocomplete/link_set" autoload :FileBuilder, "lolita-menu/autocomplete/file_builder" autoload :Collector, "lolita-menu/autocomplete/collector" def self.generate_urls file = Lolita::Menu::Autocomplete::FileBuilder.input_file instance_eval(File.read(file),file) end end # took this from sitemap_generator Urls = (Class.new do def method_missing(*args, &block) (@link_set ||= reset!).send(*args, &block) end # Use a new LinkSet instance def reset! @link_set = Autocomplete::LinkSet.new end end).new end end require 'lolita-menu/module' require 'lolita-menu/engine' #require 'lolita-menu/railtie'
Version data entries
6 entries across 6 versions & 1 rubygems