Sha256: b54bcf5d3742613db34e221d2791fae23358988f5dbf9604e52d4828655bb57e

Contents?: true

Size: 215 Bytes

Versions: 1

Compression:

Stored size: 215 Bytes

Contents

module Florida::Router
  def path(path, options = {})
    @routings ||= {}
    @routings[path] = options
  end

  def routings(&block)
    if block_given?
      block.call
    else
      @routings
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
florida-0.0.2 lib/florida/router.rb