Module: Roda::RodaPlugins::DelayBuild::ClassMethods
- Defined in:
- lib/roda/plugins/delay_build.rb
Instance Method Summary collapse
-
#app ⇒ Object
If the app is not been defined yet, build the app.
-
#build! ⇒ Object
Rebuild the application.
Instance Method Details
#app ⇒ Object
If the app is not been defined yet, build the app.
20 21 22 |
# File 'lib/roda/plugins/delay_build.rb', line 20 def app @app || build! end |
#build! ⇒ Object
Rebuild the application.
25 26 27 28 29 30 31 |
# File 'lib/roda/plugins/delay_build.rb', line 25 def build! @build_app = true build_rack_app @app ensure @build_app = false end |