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
Defined Under Namespace
Modules: Helpers, RackApp Classes: CLI, Extractor, Project, Watcher
Constant Summary collapse
- PREFIX =
File.('../', __FILE__)
Class Method Summary collapse
-
.rack_app ⇒ Object
Class method: rack_app (ProScribe) Returns a Rack app for the current dir’s ProScribe project.
- .root(*a) ⇒ Object
-
.version ⇒ Object
Class method: version (ProScribe) Returns the version of the ProScribe gem.
Class Method Details
.rack_app ⇒ Object
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.('../../', __FILE__), *a) end |
.version ⇒ Object
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 |