Class: GamesAndRpgParadise::Sinatra
- Inherits:
-
Cyberweb::Sinatra
- Object
- Cyberweb::Sinatra
- GamesAndRpgParadise::Sinatra
show all
- Defined in:
- lib/games_and_rpg_paradise/sinatra/app.rb
Overview
GamesAndRpgParadise::Sinatra
Constant Summary
collapse
- IS_ROEBE =
true
Instance Method Summary
collapse
-
#initialize(i = ARGV) ⇒ Sinatra
constructor
# === initialize ========================================================================= #.
-
#reset ⇒ Object
# === reset ========================================================================= #.
-
#return_main_index ⇒ Object
# === return_main_index (index tag, root tag) ========================================================================= #.
Constructor Details
#initialize(i = ARGV) ⇒ Sinatra
62
63
64
65
|
# File 'lib/games_and_rpg_paradise/sinatra/app.rb', line 62
def initialize(i = ARGV)
super(i, ::Cyberweb::Sinatra.use_this_port?)
reset
end
|
Instance Method Details
#reset ⇒ Object
70
71
|
# File 'lib/games_and_rpg_paradise/sinatra/app.rb', line 70
def reset
end
|
#return_main_index ⇒ Object
#
return_main_index (index tag, root tag)
#
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
|
# File 'lib/games_and_rpg_paradise/sinatra/app.rb', line 159
def return_main_index
_ = '<div>'+
GamesAndRpgParadise::DIRECTORY_AM_RANDE_DER_NACHT+
'</div>'+
HtmlTags.p('The following options are available:')+
HtmlTags.a(
'/dice', content: :self, css_class: 'mars2em'
)+
'<br>'+
HtmlTags.a(
'/dnd', content: :self, css_class: 'mars2em'
)+
'<br>'
Cyberweb::HtmlTemplate[
title: 'RPG-related web-functionality',
use_these_css_classes: 'mars2em',
body: _
].to_s
end
|