Module: Roebe::EmbeddableInterface
- Defined in:
- lib/roebe/www/embeddable_interface.rb
Class Method Summary collapse
-
.routes? ⇒ Boolean
# === Roebe::EmbeddableInterface.routes?.
Instance Method Summary collapse
-
#return_sinatra_iroebe ⇒ Object
# === return_sinatra_iroebe (iroebe tag) ========================================================================= #.
Class Method Details
.routes? ⇒ Boolean
#
Roebe::EmbeddableInterface.routes?
Define all legal routes via this Array. This Array will then be used to add more routes to any sinatra-application that needs it.
#
20 21 22 23 24 |
# File 'lib/roebe/www/embeddable_interface.rb', line 20 def self.routes? %w( iroebe ) end |
Instance Method Details
#return_sinatra_iroebe ⇒ Object
#
return_sinatra_iroebe (iroebe tag)
#
29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/roebe/www/embeddable_interface.rb', line 29 def return_sinatra_iroebe require 'roebe/classes/update.rb' _ = ''.dup _ << 'Updating all projects bundled into Roebe next.<br><br>' update_object = Roebe::Update.new _ << 'This took <b>'+ update_object.took_this_time?.round(2).to_s+' seconds</b>.<br>' return Cyberweb.html_template( title: 'Batch-installing all my local add-ons', body_css_style: 'margin: 1em', body: _ ) end |