Sha256: 5c8535b8f06524ed4f4c95cfccebcc8aceebe841cd4c588cce02638cf72aa16d
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
# frozen_string_literal: true module Hanami # Hanami application routes # # @since 2.0.0 class Routes attr_reader :apps def initialize(&blk) @blk = blk @apps = [] instance_eval(&blk) end def to_proc @blk end def mount(app, **) @apps << app if app.is_a?(Symbol) end # rubocop:disable Style/MethodMissingSuper # rubocop:disable Style/MissingRespondToMissing def method_missing(*) end # rubocop:enable Style/MissingRespondToMissing # rubocop:enable Style/MethodMissingSuper end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.alpha1 | lib/hanami/routes.rb |