Class: ChemistryParadise::Wetter::Sinatra

Inherits:
Sinatra::Base
  • Object
show all
Includes:
EmbeddableInterface, Colours
Defined in:
lib/chemistry_paradise/sinatra/wetter/app.rb

Overview

ChemistryParadise::Wetter::Sinatra

Constant Summary collapse

USE_THIS_PORT =
#

USE_THIS_PORT

#
'4569'

Instance Method Summary collapse

Methods included from EmbeddableInterface

#return_root_string

Constructor Details

#initializeSinatra

#

initialize

#


35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/chemistry_paradise/sinatra/wetter/app.rb', line 35

def initialize
  super()
  reset
  if ::ChemistryParadise.is_on_roebe?
    require 'open'
    # ===================================================================== #
    # Tell us which port will be used:
    # ===================================================================== #
    target = "http://localhost:#{USE_THIS_PORT}/"
    Cyberweb.try_to_open_this_URL_via_the_browser(target, USE_THIS_PORT)
  end
end

Instance Method Details

#resetObject

#

reset

#


51
52
# File 'lib/chemistry_paradise/sinatra/wetter/app.rb', line 51

def reset
end