class Forwards
Public Class Methods
new(config, args = [])
click to toggle source
# File lib/forwards.rb, line 6 def initialize(config, args = []) @config = config @args = args end
Public Instance Methods
forwards()
click to toggle source
# File lib/forwards.rb, line 15 def forwards @forwards ||= @config["forwards"] || {} end
get(name)
click to toggle source
# File lib/forwards.rb, line 11 def get(name) Forward.new(forwards[name], @args) if forwards[name] end