Module: Renee

Defined in:
lib/renee_core.rb,
lib/renee_core/matcher.rb,
lib/renee_core/routing.rb,
lib/renee_core/version.rb,
lib/renee_core/chaining.rb,
lib/renee_core/response.rb,
lib/renee_core/transform.rb,
lib/renee_core/exceptions.rb,
lib/renee_core/responding.rb,
lib/renee_core/env_accessors.rb,
lib/renee_core/url_generation.rb,
lib/renee_core/request_context.rb,
lib/renee_core/rack_interaction.rb

Overview

Top-level Renee constant

Defined Under Namespace

Classes: Core

Class Method Summary collapse

Class Method Details

.core(&blk) ⇒ Object

Examples:

Renee.core { path('/hello') { halt :ok } }


18
19
20
21
22
# File 'lib/renee_core.rb', line 18

def self.core(&blk)
  cls = Class.new(Renee::Core)
  cls.app(&blk) if blk
  cls
end