Class: Bioroebe::SinatraWrapper

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

Overview

Bioroebe::SinatraWrapper

Constant Summary collapse

LOCALHOST_TO_USE =
#

LOCALHOST_TO_USE

#
::Bioroebe::EmbeddableInterface.localhost_to_use?

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSinatraWrapper

#

initialize

#


47
48
49
50
51
52
53
54
# File 'lib/bioroebe/sinatra/sinatra_wrapper.rb', line 47

def initialize
  super()
  reset
  Cyberweb.try_to_open_this_URL_via_the_browser(
    LOCALHOST_TO_USE,
    ::Bioroebe::EmbeddableInterface::USE_THIS_PORT
  ) { :be_quiet }
end

Class Method Details

.embeddable_interface?Boolean

#

Bioroebe::SinatraWrapper.embeddable_interface?

#

Returns:

  • (Boolean)


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

def self.embeddable_interface?
  @embeddable_interface
end

Instance Method Details

#embeddable_interface?Boolean

#

embeddable_interface?

#

Returns:

  • (Boolean)


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

def embeddable_interface?
  ::Bioroebe::SinatraWrapper.embeddable_interface?
end

#resetObject

#

reset (reset tag)

#


72
73
# File 'lib/bioroebe/sinatra/sinatra_wrapper.rb', line 72

def reset
end

#return_explanation_of_how_to_use_the_aminoacid_conversionObject

#

return_explanation_of_how_to_use_the_aminoacid_conversion

#


988
989
990
# File 'lib/bioroebe/sinatra/sinatra_wrapper.rb', line 988

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

#return_form_for_to_aa_actionObject

#

return_form_for_to_aa_action

#


995
996
997
# File 'lib/bioroebe/sinatra/sinatra_wrapper.rb', line 995

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

#return_header_to_aminoacid_conversionObject

#

return_header_to_aminoacid_conversion

#


981
982
983
# File 'lib/bioroebe/sinatra/sinatra_wrapper.rb', line 981

def return_header_to_aminoacid_conversion
  Bioroebe::SinatraWrapper.embeddable_interface?.return_header_to_aminoacid_conversion
end
#
#


1002
1003
1004
# File 'lib/bioroebe/sinatra/sinatra_wrapper.rb', line 1002

def return_paragraph_of_hyperlinks
  embeddable_interface?.return_paragraph_of_hyperlinks
end