Class: Bioroebe::Sinatra

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/bioroebe/www/sinatra/sinatra.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSinatra

Returns a new instance of Sinatra.


42
43
44
45
46
47
48
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 42

def initialize
  super()
  reset
  target = Bioroebe::EmbeddableInterface.localhost_to_use?
  use_this_port = ::Bioroebe::EmbeddableInterface::USE_THIS_PORT
  Cyberweb.try_to_open_this_URL_via_the_browser(target, use_this_port) { :be_quiet }
end

Class Method Details

.e(i = '') ⇒ Object


212
213
214
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 212

def self.e(i = '')
  ::Bioroebe.e(i)
end

.embeddable_interface?Boolean

Returns:

  • (Boolean)

28
29
30
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 28

def self.embeddable_interface?
  @embeddable_interface
end

.erev(i = '') ⇒ Object


219
220
221
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 219

def self.erev(i = '')
  ::Bioroebe.erev(i)
end

.sfancy(i = '') ⇒ Object


241
242
243
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 241

def self.sfancy(i = '')
  ::Bioroebe.sfancy(i)
end

.start_sinatra_interfaceObject


228
229
230
231
232
233
234
235
236
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 228

def self.start_sinatra_interface
  erev 'Trying to start the sinatra-interface of Bioroebe next.'
  e
  erev 'This should use the following URL:'
  e
  erev "  #{sfancy(Bioroebe::EmbeddableInterface.localhost_to_use?)}"
  e
  ::Bioroebe::Sinatra.run!
end

Instance Method Details

#embeddable_interface?Boolean

Returns:

  • (Boolean)

35
36
37
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 35

def embeddable_interface?
  ::Bioroebe::Sinatra.embeddable_interface?
end

#p(i, hash = {}) ⇒ Object


53
54
55
56
57
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 53

def p(
    i, hash = {}
  )
  return HtmlTags.p(i, hash)
end

#resetObject


319
320
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 319

def reset
end

#return_explanation_of_how_to_use_the_aminoacid_conversionObject


793
794
795
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 793

def return_explanation_of_how_to_use_the_aminoacid_conversion
  Bioroebe::Sinatra.embeddable_interface?.return_explanation_of_how_to_use_the_aminoacid_conversion
end

#return_form_for_to_aa_actionObject


800
801
802
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 800

def return_form_for_to_aa_action
  Bioroebe::Sinatra.embeddable_interface?.return_form_for_to_aa_action
end

#return_header_to_aminoacid_conversionObject


786
787
788
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 786

def return_header_to_aminoacid_conversion
  Bioroebe::Sinatra.embeddable_interface?.return_header_to_aminoacid_conversion
end

807
808
809
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 807

def return_paragraph_of_hyperlinks
  embeddable_interface?.return_paragraph_of_hyperlinks
end