Module: Roebe::EmbeddableInterface

Defined in:
lib/roebe/www/embeddable_interface.rb

Class Method Summary collapse

Instance Method Summary collapse

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.

#

Returns:

  • (Boolean)


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_iroebeObject

#

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