Module: Flight::Router::Map::Builder

Defined in:
lib/flight/router/map.rb

Class Method Summary collapse

Class Method Details

.build(*keys, &block) ⇒ Object



6
7
8
# File 'lib/flight/router/map.rb', line 6

def self.build(*keys,&block)
  builder[keys] = block
end

.builderObject



9
10
11
# File 'lib/flight/router/map.rb', line 9

def self.builder
  @builder ||= {}
end