Class: ChemistryParadise::Wetter::Sinatra
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- ChemistryParadise::Wetter::Sinatra
show all
- Includes:
- EmbeddableInterface, Colours
- Defined in:
- lib/chemistry_paradise/sinatra/wetter/app.rb
Overview
ChemistryParadise::Wetter::Sinatra
Constant Summary
collapse
- USE_THIS_PORT =
'4569'
Instance Method Summary
collapse
-
#initialize ⇒ Sinatra
constructor
# === initialize ========================================================================= #.
-
#reset ⇒ Object
# === reset ========================================================================= #.
#return_root_string
Constructor Details
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'
target = "http://localhost:#{USE_THIS_PORT}/"
Cyberweb.try_to_open_this_URL_via_the_browser(target, USE_THIS_PORT)
end
end
|
Instance Method Details
#reset ⇒ Object
51
52
|
# File 'lib/chemistry_paradise/sinatra/wetter/app.rb', line 51
def reset
end
|