Class: RETerm::Components::Dialog
- Inherits:
-
RETerm::Component
- Object
- RETerm::Component
- RETerm::Components::Dialog
- Includes:
- RETerm::CDKComponent
- Defined in:
- lib/reterm/components/dialog.rb
Overview
CDK Dialog Component
Instance Attribute Summary
Attributes inherited from RETerm::Component
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Dialog
constructor
Initialize the Dialog component.
Methods included from RETerm::CDKComponent
#activatable?, #activate!, #colors=, #component, #draw!, #value
Methods inherited from RETerm::Component
#activatable?, #activate!, #colored?, #colors=, #finalize!
Constructor Details
#initialize(args = {}) ⇒ Dialog
Initialize the Dialog component
15 16 17 18 19 20 |
# File 'lib/reterm/components/dialog.rb', line 15 def initialize(args={}) @message = [args[:message]].flatten.compact @buttons = [args[:buttons]].flatten.compact @buttons = ["</B/24>OK", "</B16>Cancel"] if @buttons.empty? end |