Class: Pdadv::Screen
- Inherits:
-
Object
- Object
- Pdadv::Screen
- Defined in:
- lib/pdadv/screen.rb
Instance Attribute Summary collapse
-
#actors ⇒ Object
readonly
Returns the value of attribute actors.
-
#back ⇒ Object
Returns the value of attribute back.
-
#message ⇒ Object
Returns the value of attribute message.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #format_message(scenario) ⇒ Object
-
#initialize(name = nil) ⇒ Screen
constructor
A new instance of Screen.
Constructor Details
#initialize(name = nil) ⇒ Screen
7 8 9 10 11 12 |
# File 'lib/pdadv/screen.rb', line 7 def initialize(name = nil) @name = name || "id-#{rand(999_999_999)}" @back = nil @actors = [] = '' end |
Instance Attribute Details
#actors ⇒ Object (readonly)
Returns the value of attribute actors.
15 16 17 |
# File 'lib/pdadv/screen.rb', line 15 def actors @actors end |
#back ⇒ Object
Returns the value of attribute back.
14 15 16 |
# File 'lib/pdadv/screen.rb', line 14 def back @back end |
#message ⇒ Object
Returns the value of attribute message.
14 15 16 |
# File 'lib/pdadv/screen.rb', line 14 def end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/pdadv/screen.rb', line 14 def name @name end |
Instance Method Details
#format_message(scenario) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/pdadv/screen.rb', line 17 def (scenario) return '' if .empty? text = CGI.escape_html() text = create_link(scenario, text) text end |