Class: Pwl::Dialog::Base
- Inherits:
-
Object
- Object
- Pwl::Dialog::Base
- Defined in:
- lib/pwl/dialog/base.rb
Overview
Base class for dialogs
Direct Known Subclasses
Instance Attribute Summary collapse
-
#prompt ⇒ Object
readonly
Returns the value of attribute prompt.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, prompt) ⇒ Base
constructor
Constructs a new dialog with the given title and prompt.
Constructor Details
#initialize(title, prompt) ⇒ Base
Constructs a new dialog with the given title and prompt.
17 18 19 |
# File 'lib/pwl/dialog/base.rb', line 17 def initialize(title, prompt) @title, @prompt = title, prompt end |
Instance Attribute Details
#prompt ⇒ Object (readonly)
Returns the value of attribute prompt.
12 13 14 |
# File 'lib/pwl/dialog/base.rb', line 12 def prompt @prompt end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
12 13 14 |
# File 'lib/pwl/dialog/base.rb', line 12 def title @title end |