class Podium::Configuration
Attributes
name_to_url[W]
podlets[R]
Public Class Methods
new()
click to toggle source
# File lib/podium/configuration.rb, line 7 def initialize @podlets = {} end
Public Instance Methods
name_to_url()
click to toggle source
# File lib/podium/configuration.rb, line 15 def name_to_url @name_to_url || ->(name) { raise "name_to_url not configured. Set name_to_url in podium configuration." } end
register(name, url = nil)
click to toggle source
# File lib/podium/configuration.rb, line 11 def register(name, url = nil) @podlets[name] = url end