Sha256: 4945382feb872021832581ea8cb02ecd8b949175f6bb7380b179122637ddd609
Contents?: true
Size: 592 Bytes
Versions: 2
Compression:
Stored size: 592 Bytes
Contents
# A plugin for generating a simple navigation. See README for resources on usage instructions. module SimpleNavigation mattr_accessor :config_file # Reads the specified config_file and stores it for later evaluation. def self.load_config(config_file) self.config_file = IO.read(config_file) end # Returns the singleton instance of the SimpleNavigation::Configuration def self.config Configuration.instance end # Returns the ItemContainer that contains the items for the primary navigation def self.primary_navigation config.primary_navigation end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
andi-simple-navigation-1.1.1 | lib/simple_navigation.rb |
simple-navigation-1.1.1 | lib/simple_navigation.rb |