module Railroad::Switch
Constants
- VERSION
Attributes
fallback_to[RW]
route[R]
Public Class Methods
app()
click to toggle source
# File lib/railroad/switch.rb, line 9 def app Application.new end
register(path:, app:)
click to toggle source
# File lib/railroad/switch.rb, line 13 def register(path:, app:) @route ||= {} @route[path] = app end