Module: Rib::Ramaze
- Defined in:
- lib/rib/app/ramaze.rb
Class Method Summary collapse
Class Method Details
.load ⇒ Object
5 6 7 8 9 |
# File 'lib/rib/app/ramaze.rb', line 5 def load load_ramaze rescue LoadError => e Rib.abort("Error: #{e}", "Is this a Ramaze app?") end |
.load_ramaze ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/rib/app/ramaze.rb', line 11 def load_ramaze # try to produce consistent error message, and yet lazy loading ramaze require './start' unless ramaze? require 'ramaze' ::Ramaze..started = true require './start' at_exit{ puts('Ramazement has ended, go in peace.') } end |
.ramaze? ⇒ Boolean
22 23 24 |
# File 'lib/rib/app/ramaze.rb', line 22 def ramaze? File.exist?('./start.rb') end |