Sha256: 0756c1f27a1bda8fd9d345ed9a0a78a678368ecf34cd02e1b8ec3db1ef0421c0

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

module Apitizer
  module Routing
    module Node
      class Root < Base
        def recognize?(steps)
          true
        end

        def define_address(address, *_)
          @address = address
        end

        private

        def walk(steps, path)
          path.advance(@address, node: self) if @address
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apitizer-0.0.3 lib/apitizer/routing/node/root.rb
apitizer-0.0.2 lib/apitizer/routing/node/root.rb