Module: Sharp

Defined in:
lib/sharp.rb,
lib/sharp/rack.rb,
lib/sharp/view.rb,
lib/sharp/action.rb,
lib/sharp/config.rb,
lib/sharp/logging.rb,
lib/sharp/version.rb,
lib/sharp/generator.rb

Defined Under Namespace

Modules: Logging, Rack Classes: Action, Application, Config, Generator, View

Constant Summary collapse

VERSION =
"0.3.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.appObject (readonly)

Returns the value of attribute app.



20
21
22
# File 'lib/sharp.rb', line 20

def app
  @app
end

Class Method Details

.boot(root) ⇒ Object



25
26
27
28
29
# File 'lib/sharp.rb', line 25

def self.boot(root)
  @app = Application.new(root)
  @app.boot
  @app
end

.generate(name) ⇒ Object



31
32
33
34
35
# File 'lib/sharp.rb', line 31

def self.generate(name)
  generator = Sharp::Generator.new(name)
  generator.generate
  puts "New sharp application created at #{generator.output_dir}"
end