Class: Bioroebe::Sinatra
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Bioroebe::Sinatra
- Defined in:
- lib/bioroebe/www/sinatra/sinatra.rb
Class Method Summary collapse
- .e(i = '') ⇒ Object
- .embeddable_interface? ⇒ Boolean
- .erev(i = '') ⇒ Object
- .sfancy(i = '') ⇒ Object
- .start_sinatra_interface ⇒ Object
Instance Method Summary collapse
- #embeddable_interface? ⇒ Boolean
-
#initialize ⇒ Sinatra
constructor
A new instance of Sinatra.
- #p(i, hash = {}) ⇒ Object
- #reset ⇒ Object
- #return_explanation_of_how_to_use_the_aminoacid_conversion ⇒ Object
- #return_form_for_to_aa_action ⇒ Object
- #return_header_to_aminoacid_conversion ⇒ Object
- #return_paragraph_of_hyperlinks ⇒ Object (also: #footer, #hyperlink_paragraph, #hyperlinks_paragraph)
Constructor Details
#initialize ⇒ Sinatra
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
28 29 30 |
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 28 def self. @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_interface ⇒ Object
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
35 36 37 |
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 35 def ::Bioroebe::Sinatra. 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 |
#reset ⇒ Object
319 320 |
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 319 def reset end |
#return_explanation_of_how_to_use_the_aminoacid_conversion ⇒ Object
793 794 795 |
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 793 def return_explanation_of_how_to_use_the_aminoacid_conversion Bioroebe::Sinatra..return_explanation_of_how_to_use_the_aminoacid_conversion end |
#return_form_for_to_aa_action ⇒ Object
800 801 802 |
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 800 def return_form_for_to_aa_action Bioroebe::Sinatra..return_form_for_to_aa_action end |
#return_header_to_aminoacid_conversion ⇒ Object
786 787 788 |
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 786 def return_header_to_aminoacid_conversion Bioroebe::Sinatra..return_header_to_aminoacid_conversion end |
#return_paragraph_of_hyperlinks ⇒ Object Also known as: hyperlink_paragraph, hyperlinks_paragraph ,
807 808 809 |
# File 'lib/bioroebe/www/sinatra/sinatra.rb', line 807 def return_paragraph_of_hyperlinks .return_paragraph_of_hyperlinks end |