Module: ProScribe

Defined in:
lib/proscribe.rb,
lib/proscribe/helpers.rb,
lib/proscribe/project.rb,
lib/proscribe/version.rb,
lib/proscribe/watcher.rb,
lib/proscribe/rack_app.rb,
lib/proscribe/extractor.rb

Overview

Module: RackApp (ProScribe) Provides a Rack app.

## Usage

Use ProScribe.rack_app.

Defined Under Namespace

Modules: Helpers, RackApp Classes: CLI, Extractor, Project, Watcher

Constant Summary collapse

PREFIX =
File.expand_path('../', __FILE__)

Class Method Summary collapse

Class Method Details

.rack_appObject

Class method: rack_app (ProScribe) Returns a Rack app for the current dir’s ProScribe project.

## Usage

[config.ru (ruby)]
require 'proscribe'
run ProScribe.rack_app


48
49
50
# File 'lib/proscribe.rb', line 48

def self.rack_app
  RackApp.run! && Proton::Server
end

.root(*a) ⇒ Object



24
25
26
# File 'lib/proscribe.rb', line 24

def self.root(*a)
  File.join(File.expand_path('../../', __FILE__), *a)
end

.versionObject

Class method: version (ProScribe) Returns the version of the ProScribe gem.

## Example

ProScribe.version     #=> "0.0.2"


8
9
10
# File 'lib/proscribe/version.rb', line 8

def self.version
  "0.0.5"
end