Class: Pwl::Dialog::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/pwl/dialog/base.rb

Overview

Base class for dialogs

Direct Known Subclasses

ConsoleDialog, SystemDialog

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#promptObject (readonly)

Returns the value of attribute prompt.



12
13
14
# File 'lib/pwl/dialog/base.rb', line 12

def prompt
  @prompt
end

#titleObject (readonly)

Returns the value of attribute title.



12
13
14
# File 'lib/pwl/dialog/base.rb', line 12

def title
  @title
end